Bitstream decoding device and method

ABSTRACT

Disclosed are a bitstream decoding apparatus and a method thereof. The decoding apparatus can include: a decoder forming unit, configured to generate and output CSCI control information and connection control information by using partial decoder descriptions stored in a description storing unit; and a decoding solution, which selectively loads a plurality of functional units included in a toolbox by using the CSCI control information and the connection control information to decode a bitstream to video data. With the present invention, it is possible to decode various types of bitstreams according to each of various standards by using an identical information recognizing method.

TECHNICAL FIELD

The present invention relates to a bitstream decoding device and a method thereof, more specifically to a bitstream decoding device and a method thereof that have a decoding solution.

BACKGROUND ART

Typically, a video is converted to a bitstream by an encoder. At this time, the bitstream is stored depending on the coding type that satisfies the constraint condition of the encoder.

MPEG requires syntax and semantics, which are the constraint condition of the encoder.

The syntax, which refers to the structure, format, or length of data, shows the sequence of expressing the data. In other words, the syntax is to conform with a rule for encoding/decoding and defines the sequence and length of each element of the bitstream and a corresponding data format.

The semantics refers to the meaning of each bit that constitutes data. In other words, the semantics shows the meaning of each element of the bitstream.

Accordingly, the bitstream can be generated in various types depending on the encoding condition or the applied standard (or codec) of the encoder. Typically, each standard (e.g. MPEG-1, MPEG-2, MPEG-4 and MPEG-4 AVC) has a different bitstream syntax.

Accordingly, it may be considered that the bitstream encoded according to each standard or encoding condition has different types (i.e. syntax and semantics). A decoder corresponding to a pertinent encoder must be used to perform the decoding of the bitstream.

As described above, the typical bitstream decoder has a restriction that must satisfy the constraint condition of the encoder. This restriction makes it difficult to realize an integrated decoder corresponding to a plurality of standards.

DISCLOSURE Technical Problem

Accordingly, the present invention, which is contrived to solve the aforementioned problems, provides a bitstream decoding device and a method thereof having a decoding solution that can decode a bitstream encoded in various types (syntaxes and semantics) in accordance with each standard (e.g. MPEG-1, MPEG-2, MPEG-4 and MPEG-4 AVC) by using the same information recognizing method.

The present invention also provides a bitstream decoding device and a method thereof having a decoding solution that can parse a bitstream, compressed in various encoding methods, by using the same information analyzing method and organically control each functional unit for performing the decoding by using the parsed data.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can commonly apply a syntax analyzing method for decoding various types of bit streams.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can apply a set of new commands for parsing various types of bitstreams by using a common syntax analyzing method.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can allow a decoder to easily decode a bitstream when a syntax element is changed, added or deleted.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can allow some elements used to decode a bit stream to share the element information (i.e. a result from syntax parsing) of analyzed syntax.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can allow the element information of an analyzed syntax to be used to analyze the syntax element of a following bit stream.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can realize each function of various decoding methods suggested by a variety of standards (or codec) in units of functional unit to put the realized functions in a toolbox.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can perform a predetermined process by selectively loading some functional units necessary for a toolbox in order to decode a bitstream encoded in various types.

The present invention provides a bitstream decoding device and a method thereof having a decoding solution that can easily change, add or delete the functional units installed in a toolbox.

In addition, the present invention is to internationally standardize the concept and structure of codec integration for decoding a bitstream. Other problems that the present invention solves will become more apparent through the following description.

Technical Solution

To solve the above problems, an aspect of the present invention features an encoder/decoder and/or an integrated codec apparatus that can be universally used for various standards.

In accordance with an embodiment of the present invention, a decoder can include a decoder forming unit, configured to generate and output CSCI control information and connection control information by using partial decoder descriptions stored in a description storing unit; and a decoding solution, configured to selectively load a plurality of functional units included in a toolbox by using the CSCI control information and the connection control information to decode a bitstream to video data.

The toolbox can include at least one parsing functional unit and a plurality of decoding functional units, the parsing functional unit configured to perform syntax parsing of the bitstream, the plurality of decoding functional units configured to decode the bitstream.

The partial decoder description can be described to be compatible with a network language.

The partial decoder description can be converted to a caltrop actor language (CAL) and stored in the description storing unit or converted to a caltrop actor language (CAL) and used by the decoder forming unit.

ADVANTAGEOUS EFFECTS

As described above, an integrated codec apparatus and a method thereof in accordance with the present invention can decode a bitstream encoded in various types (syntaxes and semantics) in accordance with each standard (e.g. MPEG-1, MPEG-2, MPEG-4 and MPEG-4 AVC) by using the same information recognizing method.

The present invention can parse a bitstream, compressed in various methods, by using the same information analyzing method and organically control each functional unit for performing the decoding by using the parsed data.

The present invention can commonly apply a syntax analyzing method for decoding various types of bit streams.

The present invention can apply a set of new commands for parsing various types of bitstreams by using a common syntax analyzing method.

The present invention can easily decode a bitstream when a syntax element is changed, added or deleted.

The present invention can allow some elements used to decode a bit stream to share the element information of analyzed syntax (i.e. a result from syntax parsing).

The present invention can allow element information of analyzed syntax to be used to analyze the syntax element of a following bit stream.

The present invention can be used for the integration of a video or still image codec performing the processing in units of blocks besides MPEG-1, MPEG-2, MPEG-4 and MPEG-4 AVC codecs.

The present invention can realize each function of various decoding methods suggested by a variety of standards (or codec) in units of functional unit to put the realized functions in a toolbox.

The present invention can perform a predetermined process by selectively loading some functional units necessary for a toolbox in order to decode a bitstream encoded in various types.

In addition, the present invention can easily change, add or delete the functional units installed in a toolbox.

Hitherto, although some embodiments of the present invention have been shown and described for the above-described objects, it will be appreciated by any person of ordinary skill in the art that a large number of modifications, permutations and additions are possible within the principles and spirit of the invention, the scope of which shall be defined by the appended claims and their equivalents.

DESCRIPTION OF DRAWINGS

FIG. 1 shows a brief structure of a typical decoder.

FIG. 2 shows a brief structure of a typical encoder.

FIG. 3 shows a brief structure of a decoder in accordance with an embodiment of the present invention.

FIG. 4 shows a brief structure of an extended bitstream in accordance with an embodiment of the present invention.

FIG. 5 shows a brief structure of a decoding processing unit in accordance with an embodiment of the present invention.

FIG. 6 shows a brief structure of a decoding processing unit in accordance with another embodiment of the present invention.

FIG. 7 shows an example of functional units for syntax parsing in accordance with an embodiment of the present invention.

FIG. 8 shows an example of functional units for decoding processing in accordance with an embodiment of the present invention.

FIG. 9 shows the structure of an extended bitstream in accordance with a first embodiment of the present invention.

FIG. 10 shows the structure of an extended bitstream in accordance with a second embodiment of the present invention.

FIG. 11 shows the structure of an extended bitstream in accordance with a third embodiment of the present invention.

FIG. 12 shows the structure of an extended bitstream in accordance with a fourth embodiment of the present invention.

FIG. 13 shows the structure of an extended bitstream in accordance with a fifth embodiment of the present invention.

FIG. 14 shows the structure of an extended bitstream in accordance with a sixth embodiment of the present invention.

FIG. 15 shows the structure of an extended bitstream in accordance with a seventh embodiment of the present invention.

FIG. 16 shows the structure of an extended bitstream in accordance with an eighth embodiment of the present invention.

FIG. 17 is a block diagram showing an encoder in accordance with an embodiment of the present invention.

FIG. 18 through FIG. 57 are examples showing the structure of each partial decoder description.

FIG. 58 is an example showing how syntax parsing is performed in accordance with yet another embodiment of the present invention.

FIG. 59 is an example showing how a READ command among SETs is converted to a CAL in accordance with yet anther embodiment of the present invention.

FIG. 60 is an example showing how a CSCIT is converted to a CAL in accordance with yet anther embodiment of the present invention.

FIG. 61 is an example showing how a VNT is used in accordance with yet anther embodiment of the present invention.

FIG. 62 is an example showing how a PT is used in accordance with yet anther embodiment of the present invention.

FIG. 63 and FIG. 64 are examples showing the combination of an FSM section and the combination of a global variable section among a CAL source in accordance with yet anther embodiment of the present invention.

MODE FOR INVENTION

Since there can be a variety of permutations and embodiments of the present invention, certain embodiments will be illustrated and described with reference to the accompanying drawings. This, however, is by no means to restrict the present invention to certain embodiments, and shall be construed as including all permutations, equivalents and substitutes covered by the spirit and scope of the present invention.

Terms such as “first” and “second” can be used in describing various elements, but the above elements shall not be restricted to the above terms. The above terms are used only to distinguish one element from the other. For instance, the first element can be named the second element, and vice versa, without departing the scope of claims of the present invention. The term and/or shall include the combination of a plurality of listed items or any of the plurality of listed items.

When one element is described as being “connected” or “accessed” to another element, it shall be construed as being connected or accessed to another element directly but also as possibly having yet another element in between. On the other hand, if one element is described as being “directly connected” or “directly accessed” to another element, it shall be construed that there is no other element in between.

The terms used in the description are intended to describe certain embodiments only, and shall by no means restrict the present invention. Unless clearly used otherwise, expressions in the singular number include a plural meaning. In the present description, an expression such as “comprising” or “consisting of” is intended to designate a characteristic, a number, a step, an operation, an element, a part or combinations thereof, and shall not be construed to preclude any presence or possibility of one or more other characteristics, numbers, steps, operations, elements, parts or combinations thereof.

Unless otherwise defined, all terms, including technical terms and scientific terms, used herein have the same meaning as how they are generally understood by those of ordinary skill in the art to which the invention pertains. Any term that is defined in a general dictionary shall be construed to have the same meaning in the context of the relevant art, and, unless otherwise defined explicitly, shall not be interpreted to have an idealistic or excessively formalistic meaning.

Hereinafter, some embodiments of an integrated codec apparatus and a method thereof in accordance with an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Identical or corresponding elements will be given the same reference numerals, regardless of the figure number, and any redundant description of the identical or corresponding elements will not be repeated.

FIG. 1 shows a brief structure of a typical decoder, and FIG. 2 shows a brief structure of a typical encoder.

As illustrated in FIG. 1, an MPEG-4 decoder 100 typically includes a variable length decoding unit 110, an inverse scanning unit 115, an inverse DC/AC prediction unit 120, an inverse quantization unit 125, an inverse discrete cosine transform unit 130 and a VOP reconstruction unit 135. It shall be evident that the decoder 100 has a structure that can be changed depending on an applied standard and some elements can be replaced with other elements.

If a transferred bit stream 105 is syntax-parsed and corresponding header information and encoded image data are extracted, the variable length decoding unit 110 determines a quantized discrete cosine transform (DCT) coefficient by using a predetermined Huffman table and the inverse scanning unit 115 generates data having the same sequence as a corresponding video 140 by performing inverse scanning. In other words, the inverse scanning unit 115 outputs corresponding values in the inverse order of scanning in various ways. In the encoding, after the quantization is performed, a scanning direction can be determined depending on the distribution of a frequency band. Typically, the scanning method can be performed in a zigzag form. Alternatively, the scanning can be performed per codec in various ways.

Syntax parsing can be collectively performed by the variable length decoding unit 110 or by an element for processing a bitstream 105 prior to the variable length decoding unit 110. In this case, since the same standard is applied to the corresponding encoder and decoder, the syntax is parsed by a predetermined rule only, to correspond to the pertinent standard.

The inverse DC/AC prediction unit 120 determines the direction of a reference block for prediction by using the magnitude of the DCT coefficient at a frequency band.

The inverse quantization unit 125 performs the inverse quantization of inversely scanned data. In other words, the inverse quantization unit 125 returns DC and AC coefficients by using a quantization parameter (OP) designated in an encoding process.

The inverse discrete cosine transform unit 130 evaluates an actual video data pixel value to generate a video object plane (VOP) by performing an inverse discrete cosine transform.

The VOP reconstruction unit 135 reconstructs a video signal by using the VOP generated by the inverse discrete cosine transform unit 130 and outputs the reconstructed signal.

As illustrated in FIG. 2, an MPEG-4 encoder 200 typically includes a discrete cosine transform unit 210, a quantization unit 215, a DC/AC prediction unit 220, a scanning unit 230 and a variable length encoding unit 235.

Each element included in the encoder 200 performs the inverse functions of the corresponding elements of the decoder 100. This shall be evident to any person of ordinary skill in the art. Briefly, the encoder 200 converts a video signal (i.e. a digital video pixel value) to a frequency value through DCT and quantization in order to performs the encoding. Then, the encoder 200 performs variable length encoding that differentiates the length of a corresponding bit according to the frequency of information to output it in a compressed bitstream form.

FIG. 3 shows a brief structure of a decoder in accordance with an embodiment of the present invention, and FIG. 4 shows a brief structure of an extended bitstream in accordance with an embodiment of the present invention. FIG. 5 shows a brief structure of a decoding processing unit in accordance with an embodiment of the present invention, and FIG. 6 shows a brief structure of a decoding processing unit in accordance with another embodiment of the present invention. FIG. 7 shows an example of functional units for syntax parsing in accordance with an embodiment of the present invention, and FIG. 8 shows an example of functional units for decoding processing in accordance with an embodiment of the present invention.

As shown in FIG. 3, a decoder 300 in accordance with the present invention has a structure that is different from that of the conventional decoder (refer to FIG. 1). In particular, a decoder description and a bitstream are provided to the decoder 300 in order to perform an encoding/decoding method. The decoder description can be provided to the decoder 300 in the form of an extended bitstream 305, which is realized through integration with a bitstream, or in the form of independent data. Of course, in case that a particular storing unit of the decoder 300 pre-stores hierarchy information corresponding to a decoder description, providing the decoder description can be omitted. However, the case that the pertinent data is included in an extended bitstream before being provided to the decoder 300 will be described below.

In accordance with an embodiment of the present invention, the decoder 300 includes a dividing unit 310 and a decoding processing unit 320. It shall be obvious that at least one of the elements (e.g. the dividing unit 310, the decoding processing unit 320 or at least one element included in the decoding processing unit 320) can be realized as a software program (or a combination of program codes), which is designed to perform a function described below.

The dividing unit 310 divides an inputted extended bitstream 305 into an encoded decoder description 313 and a typical bitstream 316 (hereinafter, referred to as “typical bitstream”) and inputs them into the decoding processing unit 320.

The dividing unit 310 can input the encoded decoder description 313 into a description decoder 505 and input the typical bitstream 316 into a decoder forming unit 520. As described above, if the encoded decoder description 313 and the typical bitstream 316 are respectively inputted as independent data, the dividing unit 310 can be omitted. Here, the typical bitstream 316 can have the identical format to the bitstream 105 of FIG. 1.

An example of the extended bitstream 305 is shown in FIG. 4. Referring to FIG. 4, the extended bitstream 305 can include the decoder description 313 and the typical bitstream 316. The extended bitstream 305 and the encoded decoder description 313, as shown in FIG. 4, are merely an example for the convenience of description and understanding. It shall be obvious that the extended bitstream 305 and/or the encoded decoder description 313 are not limited to the example of FIG. 4.

A decoder description 590, to which the encoded decoder description 131 is decoded by a description decoder 505, includes configuration information of a typical bitstream and information related to the type of encoding the typical bitstream 316 (or connection between functional units) and the determination of input or output data of a particular functional unit, in order to parse a bitstream encoded by various encoding methods and/or a bitstream encoded by using functions selected by a user among various functions. The decoder description 590 can be described by using a textual description or binary description method. Of course, if the encoded decoder description 316 is realized so as to be recognized by a decoder forming unit 520 without the processing of the description decoder 505, the description decoder 505 can be omitted.

The decoder description 590 can be divided into partial decoder descriptions, such as a functional unit list (FL) 410, a functional unit rule table (F-RT) 420, a functional unit CSCIT (FU-CSCIT) 430, a control signal and context information table (CSCIT) 440, a syntax element table (SET) 450, a syntax-rule table (S-RT) 460 and a default value table (DVT) 470, before being stored in a description storing unit 510. The order of each partial decoder description for forming the decoder description can be obviously changed in various ways.

Here, it is possible to use the FL 410, the F-RT 420, the FU-CSCIT 430 and the CSCIT 440 in order to determine the connection of the each functional unit. Hereinafter, the pertinent partial decoder descriptions can be referred to as “first decoder descriptions” as necessary.

The FU-CSCIT 440 may be a partial decoder description for the mapping between each functional unit (i.e. for performing the decoding) in a toolbox 515 and element information stored in a CSCI storing unit 532. In this case, the element information can function as a control variable for each functional unit (i.e. for performing the decoding and/or performing the syntax parsing) of the toolbox 515.

Moreover, it is possible to use the CSCIT 440, the SET 450, the S-RT 460 and the DVT 470 in order to perform the parsing of the typical bitstream 316. Hereinafter, the pertinent partial decoder descriptions can be referred to as “second decoder descriptions” if necessary. The format and function of each partial decoder description will be described below in detail.

The description decoder 405 decodes the encoded decoder description 313 inputted from the dividing unit 310 to generate a decoder description. Thereafter, the description decoder 405 divides the generated decoder description into a plurality of partial decoder descriptions in the form capable of being recognized by a decoder forming unit 520 (or a decoding solution 530) and stores the divided partial decoder descriptions in a description storing unit 510.

It is unnecessary that each partial decoder description being stored in the description storing unit 510 is represented in the form of a typical table. It is sufficient as long as the partial decoder description is information capable of being recognized by the decoder forming unit 520 (or the decoding solution 530).

The partial decoder descriptions such as the FL 410, the F-RT 420, the FU-CSCIT 430, the CSCIT 440, the SET 450, the S-RT 460 and the DVT 470 can be stored in the description storing unit 510 by allowing the decoder description to be analyzed by the description decoder 405. The description decoder 405, as shown in FIG. 11, can distinguish each partial decoder description with reference to a table identifier (TI) 1010.

Of course, it is unnecessary that the decoder description includes information corresponding to all partial decoder descriptions. As shown in FIG. 9, the decoder description can include a codec number 920 and a profile and level number 930, or as shown in FIG. 11, the decoder description can include a codec number 1120 and a profile and level number 1130 for only some of the partial decoder descriptions.

In the case of including the codec number and the profile and level number, the description decoder 405 can select a corresponding partial decoder description, to be used for the decoding, from the partial decoder descriptions pre-stored in the description storing unit 510, instead of generating a new partial decoded description, for all or some of partial decoder descriptions. Moreover, in the case of including the codec number, the profile and level number and correction information, the description decoder 405 can extract a partial decoder description corresponding to a pertinent codec from the partial decoder descriptions pre-stored at the description storing unit 410 and generate a new partial decoder description to which the correction information is applied. Of course, in the case of including a table description for generating a partial decoder description instead of the codec number and the profile and level number, the description decoder 405 can generate a new partial decoder description to be used in the decoding for all or some of the partial decoder descriptions.

The decoder description, as shown in FIG. 12, can further include revision information 1230 in addition to the decoder description (DD-T) 1210 related to each partial decoder description. The structure of each extended bitstream will be described in detail with reference to the relative drawings.

The description storing unit 410 stores each partial decoder description that is divided by the description decoder 405. Of course, if the extended bitstream 305 includes the codec number 920 or 1120 and the profile and level number 930 or 1130, the description storing unit 510 can pre-store at least one partial decoder description to allow at least one partial decoder description to be used by the decoder forming unit 520 or the decoding solution 530.

Each embodiment of the decoding processing unit 320 is shown in FIG. 5 and FIG. 6.

Referring to FIG. 5, which shows the decoding processing unit 320 in accordance with a first embodiment of the present invention, the decoding processing unit 320 can include the description decoder 505, the description storing unit 510, the tool box 515, the decoder forming unit 520 and the decoding solution 530.

The decoder forming unit 520 includes an FU checking unit 522, an information processing unit 524, and an information transferring unit 526.

If the partial decoder descriptions are stored in the description storing unit 510 by the processing of the description decoder 505, the FU checking unit 522 checks whether the toolbox includes all of the functional units described in a partial decoder description (e.g. the FL 410). If even one of functional units, which are described in the partial decoder description, is not present in the toolbox 515, an error message can be displayed through a display apparatus or the update of the pertinent functional unit can be requested to a user. Of course, in the case of being connected to a server device for performing the update of the pertinent functional unit through a communication network, the FU checking unit 522 can automatically perform the update through the communication network.

The information processing unit 524 classifies each partial decoder description stored in the description storing unit 510 according to the roles of each partial decoder description and processes each of the partial decoder descriptions in the form being easily operated by the decoding solution 530. This is because the stored format (e.g. a table format) of the partial descriptions stored in the description storing unit 510 may not be adequate for use by the decoding solution 530 or the decoding solution 530 may need information to be used more efficiently.

Since the functions and formats of each partial decoder description are to be described later in detail with reference to the relevant drawings, the format of processed data will be briefly described hereinafter.

The information processing unit 524 classifies the partial decoder descriptions according to their roles whether each of the partial decoder descriptions is to be used for generating or storing control signal/context information (CSCI) or for connecting the functional units, before processing CSCI control information and connection control information. For example, the partial decoder descriptions such as the SET 450, S-RT 460, the CSCIT 440 and the DVT 470 can be used for generating the CSCI control information, and the partial decoder descriptions such as the FL 410, the F-RT 420, the S-RT 460, and the FU-CSCIT 430 can be used for generating the connection control information.

The CSCI control information and the connection control information processed by the information processing unit 524 can be represented according to the representing method of an XML-based abstract decoder model (ADM), for example. Examples are shown as follows. Of course, the representing method of the processed CSCI control information and the processed connection control information is not obviously limited to the below examples.

Firstly, the CSCI control information can be represented as follows.

<CSCIs> <csci_memory id=“C0” name=“CSCI #0” type=“integer” /> <csci_memory id=“C1” name=“CSCI #1” type=“integer” /> <csci_memory id=“C2” name=“CSCI #2” type=“array” /> <csci_memory id=“C3” name=“CSCI #3” type=“integer” /> <csci_memory id=“C4” name=“CSCI #4” type=“integer” /> <csci_memory id=“C5” name=“CSCI #5” type=“integer” /> <csci_memory id=“C6” name=“CSCI #6” type=“integer” /> <csci_memory id=“C7” name=“CSCI #7” type=“integer” /> <csci_memory id=“C8” name=“CSCI #8” type=“integer” /> <csci_memory id=“C9” name=“CSCI #9” type=“integer” /> <csci_memory id=“C10” name=“CSCI #10” type=“integer” /> <csci_memory id=“C11” name=“CSCI #11” type=“integer” /> <csci_memory id=“C12” name=“CSCI #12” type=“integer” /> ...... </CSCI>

Next, the connection control information can be represented as follows.

<Network name=“Decoder”> <Package> <QID> <ID id=“MPEG4 Simple Profile” /> </QID> </Package> <Port kind=“Input” name=“BITSTREAM” /> <Port kind=“Ouput” name=“YUV” /> <Instance id=“1”> <Class name=“Parser”> <QID> <ID id=“c” /> </QID> </Class> <Note kind=“label” name=“Stream Parser” /> </Instance> <Instance id=“2”> <Class name=“VS”> <QID> <ID id=“c” /> </QID> <Note kind=“label” name=“Video Session” /> </Class> </Instance> <Connection src=“” src-port=“BITSTREAM” dst=“1” dst-port=“BITSTREAM” /> <Connection src=“1” src-port=“CSCI” dst=“2” dst-port=“CSCI” /> <Connection src=“1” src-port=“DATA” dst=“2” dst-port=“DATA” /> <Connection src=“2” src-port=“YUV” dst=“” dst-port=“YUV” /> </Network>

The information transferring unit 526 transfers the CSCI control information and the connection control information, processed by the information processing unit 524, to the decoding solution 530. The information transferring unit 526 can transfer the CSCI control information to a CSCI storing unit 532, which actually performs the storage and operation of CSCI information, and the connection control information to a connection control unit 534, which controls the connection between functional units. It shall be obvious that if the CSCI storing unit 532 is operated only to store the CSCI information and the operation of the CSCI information is performed by the connection control unit 534, the information transferring unit 524 can transfer the CSCI control information and the connection control information to the connection control unit 534.

The decoding solution 530 includes the CSCI storing unit 532 and the connection control unit 534. The decoder solution 530 can further include a working memory (not shown), which allows at least one functional unit to be loaded by the calling of the connection control unit 534 to perform a predetermined process.

Referring to FIG. 6, which shows a second embodiment of the decoding processing unit 320, the decoding processing unit 320 can include the description decoder 505, the description storing unit 510, the toolbox 515, the decoder forming unit 520, and the decoding solution 530.

Compared with FIG. 5, the decoding solution 530 of the decoding processing unit 320 in FIG. 6 can further include a parsing functional unit 610. The parsing functional unit 610 performs the syntax parsing of a bitstream. The parsing functional unit 610 can be stored in the decoding solution 530 as an independent element. However, it shall be obvious that the same effect can be brought about by allowing the decoding solution 530 to have two working memories and the connection control unit 534 to control one of the two working memories to dedicatedly load only functional units for performing the decoding and the other working memory to dedicatedly load the parsing functional unit 610 only. In two aforementioned cases, the parsing processing and decoding processing of a bitstream can be performed successively and/or in parallel.

Compared with FIG. 5, the information processing unit 524 also additionally processes syntax parsing control information and provides it to the decoding solution 530, for the processing of the parsing functional unit 610. Accordingly, it may be possible to change the roles of the partial decoder descriptions for generating the CSCI control information, the connection control information and the syntax parsing control information.

In particular, the information processing unit 524 classifies the partial decoder descriptions according to whether each of the partial decoder descriptions is used for the generation or storage of the CSCI, the syntax parsing, or the connection of functional units, before processing CSCI control information, connection control information and syntax parsing control information. For example, the partial decoder description such as the CSCIT 440 can be used for generating the CSCI control information; the partial decoder descriptions such as the FL 410, the F-RT 420, and the FU-CSCIT 430 can be used for generating the connection control information; and the partial decoder descriptions such as the SET 450, the S-RT 460, the CSCIT 440, and DVT 470 can be used for generating the syntax parsing control information.

As described above, the CSCI control information and the connection control information processed by the information processing unit 524 can be represented according to the representing method of an XML-based abstract decoder model (ADM), for example. Below is an example of representing the syntax parsing control information.

<syntax>   <syntax_element id=“S0” name=“Syntax #0”>    <process>     <cmd type=“READ”>      <parameter index=0>32</parameter>      <parameter index=1>B</parameter>     </cmd>     <cmd type=“EXPRESSION”>      <parameter index=0>(C0=(IBS==HEX:1B0))</parameter>     </cmd>    </process>   </syntax_element>   <syntax_element id=“S1” name=“Syntax #1”>    <process>     <cmd type=“READ”>      <parameter index=0>8</parameter>      <output type=“CSCI”>C1</output>     </cmd>    </process>   </syntax_element>   (......) </syntax>

The information transferring unit 526 transfers the CSCI control information, the connection control information, and the syntax parsing control information, processed by the information processing unit 524, to the decoding solution 530. The information transferring unit 526 can transfer the CSCI control information to the CSCI storing unit 532, which actually performs the storage and operation of CSCI information, the connection control information to the connection control unit 534, which controls the connection between functional units, and the syntax parsing control information to the parsing functional unit 610. It shall be obvious that, if the CSCI storing unit 532 is operated only to store the CSCI information and the operation of the CSCI information is performed by the connection control unit 534, the information transferring unit 524 can transfer the CSCI control information and the connection control information to the connection control unit 534. It shall be also obvious that, if the parsing functional unit 610 performs the syntax parsing of a bitstream by the control of the connection control unit 534, the information transferring unit 524 can transfer the syntax parsing control information to the connection control unit 534.

The decoding solution 530 includes the CSCI storing unit 532, the connection control unit 534, and the parsing functional unit 610. The decoder solution 530 can further include at least one working memory, which allows at least one functional unit to be loaded by the calling of the connection control unit 534 to perform a predetermined process.

The parsing functional unit 610 can be a functional unit that can perform the syntax parsing of all bitstreams regardless of the encoding formats of the bitstreams or a functional unit that is particularly generated to perform the syntax parsing of a particular type of bitstream. In brief, the parsing functional unit 610 includes at least one functional unit for performing the syntax parsing. Hereinafter, the parsing functional unit 610 will be described in detail with reference to the relevant drawings.

As shown in FIG. 5 and FIG. 6, it is possible to re-combine or form the decoder 300 of the present invention in various ways such that an inputted bitstream can be decoded regardless of the encoding type by allowing the functional units (e.g. a functional unit for performing the decoding and/or the parsing functional unit for performing the syntax parsing) of the toolbox 515 to be selectively loaded and to be decoded.

As described above, the decoder forming unit 520 (or the connection control unit 534) forms a decoder for processing an inputted bitstream, and the decoding of a bitstream is performed by an actual decoder (i.e. the decoding solution 530) formed by the control of the decoding forming unit 520 (or the connection control unit 534). As such, separating two processing units that have the casual relationship with each other makes it possible to form a plurality of decoding solutions by using one decoder forming information, thereby allowing a decoder to more efficiently perform the processing.

Hereinafter, the function and operation of each element of the decoding processing unit 320 will be described with the relevant drawings.

The description decoder 505, as described above, decodes the inputted encoded decoder description 313 as a decoder description, and then divides the decoder description into a plurality of partial decoder descriptions to store them in the description storing unit 410.

The toolbox 515 includes a plurality of functional units, each of which is realized to perform a predetermined process. Here, the parsing functional unit 610, which is formed by using one functional unit or the combination of functional units, can be included in the toolbox 515 or the decoding solution 530. A parsing functional unit and each functional unit can be formed by using the combination of each program code.

In other words, the toolbox 515 refers to an area in which functional units realized to perform each function (i.e. predetermined processes) are included. Each of the functional units is loaded by the connection control of the connection control unit 534, thereby forming successive connection operation relationship in order to output encoded video data included in the typical bitstream 316 as video data.

Of course, as described with reference to FIG. 6, the parsing functional unit 610 can be formed to perform the analysis of the typical bitstream 316 without the connection control of the connection control unit 534 by being included in decoding solution 530 and using syntax parsing control information. This is because the following functional units may use element information that is analyzed by the parsing functional unit 610 and stored in the CSCI storing unit 532 and/or video data of a micro block size outputted from the parsing functional unit 610.

The parsing functional unit 610 analyzes the inputted typical bitstream 316 by using the syntax parsing information in order to store element information as a result of the syntax parsing in the CSCI storing unit 532. The CSCI storing unit 532 may be a buffer memory, for example. The element information may be CSCI, for example. The element information that is parsed by the parsing functional unit 610 and stored in the CSCI storing unit 532 may be a parsed result value of a pertinent operation and an input value determining the following syntax of the typical bitstream 316, simultaneously.

The parsing functional unit 610 can also perform the entropy decoding of video data and a header of the syntax-parsed typical bitstream 316 to output video data of a predetermined macroblock size to a following functional unit according to the connection control of the connection control unit 534.

Of course, the parsing functional unit 610 can store video data of a macroblock size in a predetermined buffer memory, and a following functional unit according to the load (i.e. the connection control) of the connection control unit 534 can read the video data of the macroblock size from the pertinent buffer memory to process the read video data. Then, the parsing functional unit 610 can store the processed video data at the pertinent buffer memory, for the processing of a following functional unit.

In other words, the parsing functional unit 610 can obviously store the video data of the macroblock size in the CSCI storing unit 532 or a buffer memory before the connection control unit 534 provides the stored video data of the macroblock size to a selected functional unit or the selected functional unit reads the video data from the CSCI storing unit 532 or the buffer memory. Hereinafter, it is assumed that the video data of the macroblock size outputted by the parsing functional unit 610 is directly inputted into a functional unit according to the connection control of the connection control unit 534.

The parsing functional unit 610 can be realized as one software program (including a combination of program codes). This is because even though the parsing functional unit 610 is realized to perform a plurality of functions corresponding to a plurality of standards (e.g. MPEG-1/2/4/AVC and AVS), respectively, it is possible to perform a corresponding operation by using the syntax parsing control information. Of course, the parsing functional unit 610, as shown in FIG. 7, can be realized by being segmented into a plurality of functional units or as a combination of program codes into which each functional unit is blocked.

Hereinafter, the functions of the parsing processing unit 610 will be described by describing each functional unit shown in FIG. 7 in detail.

The parsing functional unit 610, as shown in FIG. 7, can include a network abstraction layer parsing (NALP) functional unit 710, a syntax parsing (SYNP) functional unit 720, a context determination (CTX) functional unit 730, a variable length decoding (VLD) functional unit 740, a run length decoding (RLD) functional unit 750 and a macroblock generator (MBG) functional unit 760.

It shall be obvious that the parsing functional unit 610 can include any functional unit for performing the syntax parsing regardless of an applied standard, that a functional unit necessary for performing the syntax parsing can be added, that an existing functional unit can be modified and that an unnecessary functional unit can be deleted. It is also obviously possible to combine the functional units that are commonly applicable by a plurality of standards among functional units included in the parsing functional unit 610. Described below is each function of the functional units, which is evident to any person of ordinary skill in the art.

The NALP functional unit 710 parses a network abstraction layer (NAL) of MPEG-4 AVC, and the SYNP functional unit 720 parses the syntax of a bitstream. The SYNP functional unit 720 can be included in the VLD functional unit 740.

The CTX functional unit 730 determines a VLC table of MPEG-4 AVC, and the VLD functional unit 740 performs the entropy decoding.

The RLD functional unit 750 performs the entropy decoding of AC values, and the MBG functional unit 760 combines DC values and AC values to generate one macroblock datum. The VLD functional unit 740 can perform the functions of all or some of the functional units included in the aforementioned parsing functional unit 610, according to system realizing types.

As described above, the parsing functional unit 610 can be realized as one software program or a plurality of software programs (e.g. the VLD functional unit 740 can be independently realized as an independent software program). The operation, by which the parsing functional unit 610 extracts or generates element information by using syntax parsing control information and stores the extracted or generated element information in the CSCI storing unit 532, will be described later when the connection control unit 534 is described.

The decoding functional units included in the toolbox 515 decodes video data in units of macroblocks, outputted (or stored at the buffer memory) by the parsing functional unit 610, and outputs the decoded video data having a predetermined size by being activated by the selective load of the connection control unit 534 and performing each predetermined process.

The toolbox 515 can include functional units for performing the foregoing functions according to each standard. Each functional unit can be realized as an independent processing block (e.g. a software program, a combination of command codes and a function) or one integrated processing block. Although the decoding functional units are realized as one integrated processing block, the corresponding processing can be obviously performed by the connection control of the connection control unit 534.

The decoding functional units, as shown in FIG. 8, can include a de-blocking filtering (DF) functional unit 810, a VOP reconstructing (VR) functional unit 815, a frame field reordering (FFR) functional unit 820, an intra prediction and picture reconstruction (IPR) functional unit 830, an inverse transform (IT) functional unit 835, an inverse quantization (IQ) functional unit 845, an inverse AC prediction (IAP) functional unit 855, an inverse scanning (IS) functional unit 860 and a DC reconstruction (DCR) functional unit 865.

An IT 4×4 functional unit 840, an IQ 4×4 functional unit 850 and a DCR 4×4 functional unit 870 process the blocks having the size of 4×4. This is because although MPEG-1/2/4 process data in 8×8 block size in the transform, quantization and prediction, MPEG-4 AVC may process data in 4×4 block size.

It shall be obvious that the toolbox 515 can include any functional unit for performing a data decoding function regardless of an applied standard, that a necessary functional unit for the developed technology can be added, that an existing functional unit can be modified and that an unnecessary functional unit can be deleted. For example, in the case of additionally needing the IS functional unit processing data in 4×4 block size to perform the decoding, the pertinent functional units can be included in the toolbox 515. A special prediction (SPR) functional unit (not shown) can be also added to perform the intra prediction in the MPEG-4 AVC.

It shall be obviously possible to combine the functional units that are commonly applicable by a plurality of standards among functional units of the toolbox 515. Briefly described below is each function of the functional units, which is evident to any person of ordinary skill in the art.

The DF functional unit 810 is a de-blocking filter of MPEG-4 AVC, and the VR functional unit 815 is a functional unit storing a decoded pixel value.

The FFR functional unit 820 is for an interlaced mode, and the IPR functional unit 830 performs the intra prediction of MPEG-4 AVC and then stores a decoded pixel value. As described above, the intra prediction of MPEG-4 AVC can be performed by the SPR functional unit.

The IT functional unit 835 performs the inverse transform of DC values and AC values, and the IQ functional unit 845 performs the inverse quantization of the AC values.

The IAP functional unit 855 performs the inverse AC prediction of the AC values, and the IS functional unit 860 performs the inverse scan of the AC values. The DCR functional unit 865 performs the inverse DC prediction and the inverse quantization of the DC values.

It is unnecessary that the processing operation between the above-described parsing functional unit 610 and decoding functional units is successively performed (i.e. the operation of the parsing functional unit 610 is completed before the decoding functional unit starts to be operated). It is obviously possible to perform the parallel processing by allowing at least two functional units to be loaded onto a working memory by the connection control of the connection control unit 534. This is because it is sufficient to allow only minimum element information necessary for the operation of a particular decoding functional unit to be stored in the CSCI storing unit 532 by the parsing functional unit 610.

As described with reference to FIG. 6, if the parsing functional unit 610 or at least two working memories are included in the decoding solution 530, although the pertinent description is omitted, it is obviously possible to perform the syntax parsing and decoding processing in parallel without additional control of the connection control unit 534.

The CSCI storing unit 532 stores element information (e.g. CSCI), which is the result value from the syntax parsing that the parsing functional unit 610 performs by using CSCI control information (or syntax parsing control information), to correspond to the CSCIT 440. For example, the CSCI storing unit 532 can be a buffer memory.

The element information stored in the CSCI storing unit 532 can be used as input data for performing a process of the SET 450 by the parsing functional unit 610 or as a control variable for determining a following connection index in the S-RT 460.

The element information stored in the CSCI storing unit 532 can be also used as a control variable for determining a following connection index in the F-RT 420 by the connection control unit 534 or used to map an input CSCI of a functional unit to element information, stored in the CSCI storing unit 532, in the FU-CSCIT 430.

In other words, the element information stored in the CSCI storing unit 532 links the parsing functional unit 610 with the decoding functional units.

The connection control unit 534 sets the connection of each decoding functional unit in order to decode a bitstream encoded by various standards through the control of the selective load of each functional unit. In other words, the connection control unit 534 selects a suitable functional unit of each functional unit included in the toolbox 515 in order to determine a performing order of the selected functional units. Herein, the connection control unit 534 connects the pertinent functional units by using connection control information and controls each functional unit to use the element information provided by the parsing functional unit 610 to decode video data in units of macroblock.

Hereinafter, the functions and purposes of each partial decoder description will be described based on the operation of the information processing unit 524 of the decoder forming unit 520 with reference to the relevant drawings. Although the connection control unit 534 performs the processing by using the information processed by the information processing unit 524, this will be described by referring to the details of the partial decoder description for the convenience of description and understanding.

The information processing unit 524 generates the connection control information by using the partial decoder descriptions such as the FL 410, the F-RT 420, the FU-CSCIT 430 and the CSCIT 440. It is also possible to further use the S-RT 460 in order to set the connection of each functional unit for the syntax parsing.

Firstly, an FU list (FL) 410, as shown in FIG. 18, refers to a partial decoder description including a list of functional units included in the toolbox 515, input and output data of the pertinent functional units, and element information controlling the functional units.

The FL 410 can further include a buffer memory name of data inputted into each functional unit (or an address in which pertinent data is written or an address of a buffer memory in which pertinent data is written) and a buffer memory name of data outputted by the pertinent functional unit (or an address in which pertinent data is written or an address of a buffer memory in which pertinent data is written).

Accordingly, each functional unit can use the FL 410 in order to read and process input data and to write corresponding output data. Information written in the FL 410 can be used in order to allow input and output data to be transferred to each functional unit, or the connection control unit 534 can provide suitable input data to each functional unit.

However, in the FL 410, input data and output data of the parsing functional unit generating element information is not written. This is because the parsing functional unit 610 can use information such as the SET 450 in order to generate element information and to write the generated information at a designated position.

The FL 410, as shown in FIG. 18, can include an index (F), which is an identifier for identifying each functional unit, a name of each functional unit (FU name), the number of a CSCI variable, input data, and output data.

The particular functional unit loaded onto the working memory by the connection control unit 534 receives input data from the connection control unit 534 and generates output data by performing a predetermined process. Here, the functional unit is included in the toolbox 515, and refers to a series of processing operations (e.g. purposes, algorithms, and functions) that process the input data by performing the predetermined process to generate the output data. The pertinent functional unit can store the output data in a buffer memory for the processing of a following functional unit (i.e. a functional unit subsequently loaded by the control of the connection control unit 534). Since the functional units of FIG. 18 have been described with reference to the relevant drawings, the pertinent detailed description will be omitted. Similarly, since a QFS, a QFSP, a PQF, and a QF are evident to any person of ordinary skill in the art of MPEG, the pertinent description will be omitted. For example, the QFS refers to a various-length encoded output value.

If it is sufficient that the decoding processing unit 320 uses only one standard to decode encoded video data included in the typical bitstream 316, the FL 410 can only include information related to the functional units for performing a corresponding process of the pertinent standard.

However, in case that the pertinent video data is encoded by a plurality of standards (e.g. in the case of applying different encoding standards in units of a plurality of frames), information related to the functional units conforming to a plurality of standards to decode pertinent encoded video data will be necessary. Accordingly, in this case, the FL 410 is required to include the information related to the functional units conforming to a plurality of standards necessary to decode the encoded video data among all functional units conforming to a plurality of corresponding standards.

Of course, even though different standards encoded in units of a plurality of frames are applied to video data, if the plurality of typical bitstreams 316 and extended bitstreams 305 are generated per applied encoding standard, each of the FL 410 can include the information related to the functional units conforming to each corresponding standard.

The FL 410 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

Next, the F-RT 420 provides connection information of the functional unit to be used to decode the inputted typical bitstream 316.

The F-RT 420, as shown in FIG. 19, includes an index (R) indexing each connection information (Rule), a functional unit (F#), corresponding to a pertinent connection index, element information (input CS/CI, C#) necessary for the connection control, the number of branches (No. of branches), connectable to a following functional unit and each branch information (#1, #2 and #3 . . . ) necessary as many as the number of branches.

Only if the number of branches is equal to or greater than 2, there is the necessary element information. In this case, the connection index can vary according to the determined result of a conditional statement using the necessary element information. In other words, if the number of branches is 1, there is no necessary element information and it proceeds to the connection index pointed by the branch information. After the pertinent conditional statement, a following connection index (R) is shown.

If it is sufficient that the decoding processing unit 320 uses only one standard to decode encoded video data included in the typical bitstream 316, the F-RT 420 will indicate the connection of the functional units for performing a corresponding process of the pertinent standard.

However, if the pertinent video data is encoded by a plurality of standards (e.g. in the case of applying different encoding standards in units of a plurality of frames), the obvious thing is to include the information for designating the connection of the functional units conforming to a plurality of standards to decode pertinent encoded video data. If each partial decoder description, to be described below, needs additional information for applying a plurality of standards and/or correction for applying a plurality of standards, it is obvious that pertinent information will be further included.

The F-RT 420 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

F0 is a functional unit for performing R0 through R5 and R12 among the indexes (R) indexing each connection information (rule) shown in FIG. 19. Referring to the FL 410 in FIG. 18, it can be recognized that F0 is the parsing functional unit 610. Accordingly, it can be recognized that the connection control unit 534 controls the connection of operations of each functional unit (including functional units performing syntax parsing in the case of FIG. 5) included in the toolbox 515. Moreover, in case that the selected functional unit is a functional unit performing the syntax parsing, the F-RT 420 includes the connection information (rule) indicating that the pertinent functional unit must read and process an n^(th) syntax (e.g. F0 (R74)).

Moreover, an index R1 is defined with “PROCESS1” on a field of functional unit. For example, “PROCESS1” can be a function being called to perform other operations (i.e. operations except for syntax parsing and data decoding) necessary for programming software such as variable declaration, memory setting, and initialization of a variable value. Such a process can be inserted into the necessary location of the F-RT 420 for the performing of software and called by the connection control unit 530 in the middle of the syntax parsing operation or the data decoding operation. Even though FIG. 19 shows that one process is inserted, it shall be obvious that a plurality of processes having all identical performing operations or different performing operations can be inserted into a plurality of locations of the F-RT 420.

Next, the FU-CSCIT 430 is a partial decoder description for connecting element information stored in the CSCI storing unit 532 with element information (input CSCI) necessary for each functional unit.

As shown in FIG. 20, the FU-CSCIT 430 includes an index (F-C), which is arranged as a pair of the index of the FL 410 and element information, pertinent element information, and an index (C) used for the mapping in the CSCIT 440. In addition, the FU-CSCIT 430 can further include a data type of element information. The data type will be described as 9-bit integer and 1-bit flag, for example.

The FU-CSCIT 430 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

For example, if F1 receives 4 items of element information from the F-RT 420 (refer to FIG. 18), the element information is listed per functional unit in the FU-CSCIT 430. In other words, F1-C1, F1-C2, F1-C3 and F1-C4 are listed, and like C54, C56, C58 and C65, each element information is mapped by using the index (C) of the CSCIT 440 (refer to FIG. 21).

Similarly, if F2 receives 2 items of the element information, the FU-CSCIT 430 indexes F2-C1 and F2-C2, and C56 and C 58 are mapped. Here, the C54 and C 56 can be recognized as the addresses in which the corresponding element information (e.g. a history address, a buffer memory title or a history address of a buffer memory) is stored. The pertinent functional unit can generate output data by using the input data and the element information corresponding to index (C) and output (or write in the buffer memory) the generated output data.

For example, the DCR needs 4 items of element information to process input data of QFS in the FL 410, and the 4 items of element information is recognized as C54, C56, C58 and C65 by the FU-CSCIT 430. The CSCIT storing unit 532 reads the element information corresponding to the pertinent index (C) to generate QFSP.

Finally, the CSCIT 440 writes details related to the element information (e.g. CSCI) as result information of a process that the parsing functional unit 610 uses the SET 450 and S-RT 460. In other words, the CSCIT 440 has information related to all meaningful data (i.e. element information), which is processed from the typical bitstream 316 and stored in the CSCI storing unit 532 and to be used by the decoding functional units.

As shown in FIG. 21, the CSCIT 440 includes an index (C), which is an identifier as an identification number of the pertinent element information, a flag, a name (Element Name) of pertinent element information, an attribute (e.g. a storage space size of the pertinent element information and determination of whether the pertinent element information is an array type) for designating a data-structural property of pertinent element information and global/local indicating whether the pertinent element information is used in the syntax parsing operation only or in the overall decoding operation.

The CSCIT 440 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

Next, the CSCIT 440, the SET 450, S-RT 460 and the DVT 470, which are used in order to extract or generate element information from the typical bitstream 316 and store the extracted or generated element information in the CSCI storing unit 520, will be described. However, since the CSCIT 440 has already been described with reference to FIG. 20, the pertinent description will be omitted.

Firstly, the SET 450 refers to a partial decoder description formed to include information related to the syntaxes of the inputted typical bitstream 316. As shown in FIG. 22 through FIG. 25, the SET 450 includes an index of each of the syntax, an element name, input data, output data and a SET-process (process by SET-PROC). Here, the index refers to an identifier S identifying each of the syntax used for the S-RT 460. The element name, which is a name of the syntax, can be named with reference to the meaning or function of the syntax. The input data refers to a nominal length of a bit inputted at one time in the typical bitstream 316. The output data, which is element information (i.e. CSCI (C)), refers to a list of the CSCIT 440 referred when acquired data is stored. Here, an output data field can be the name of a buffer memory in which generated element information (or a written address of the pertinent data or an address of the buffer memory in which the pertinent data is written) is to be written. Then, in the case of needing the pertinent element information as input data, the pertinent element data can be read by using the CSCI (C). The SET-process writes the process including what processing operation is performed to generate the element information as output data after each of the bitstream syntax is inputted.

The SET 450 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

Then, the S-RT 460 refers to connection information between syntaxes in the typical bitstream 316. In other words, the S-RT 460 has information to order to call each of the syntax and to move to a next syntax. The parsing functional unit 610 uses the R-ST 460 to read the typical bitstream 316 or to determine the sequence of storing and/or renewing the element information in the CSCI storing unit 532.

As shown in FIG. 26 through FIG. 29, the S-RT 460 includes an index (R), an index (S) of syntax, input data (C), the number of branches, and branch information.

The index (R) indexes each of the connection information (Rule). Since the index (S) of the syntax designates the syntax to be processed in a particular connection index, the parsing functional unit (or the functional units performing the syntax parsing) uses the SET 450 to perform the designated process of the pertinent syntax.

The input data indicates a list of the element information to be used for the conditional determination to control the connection of a pertinent connection index

The number of branches, which is the number of cases capable of being connected to a following syntax, refers to the total number of the branch routes of a corresponding connection index. The branch information, which is provided in the same quantity as the number of branches (#1, #2, #3 . . . ), refers to a condition determining algorithm determining which connection index is processed next. It is possible to directly determine the sequence and contents of data to be read by the branch information. As shown in FIG. 22 through FIG. 25, if the number of branches is 1, no input data is provided and it directly proceeds to process the connection index designated by the branch information. However, if the number of branches is 2 or more, the condition determination (consisting of following connection information (R) after the conditional statement) is performed and it proceeds to process a corresponding connection index

The parsing functional unit 610 renews the CSCI storing unit 532 by processing the syntax defined in the pertinent connection index. Then, the parsing syntax unit 610 reads the renewed data by referring to the element information of the CSCI storing unit 380 to use it for branch condition determination. For example, C0 under the branch condition of the branch information of an index R0, “C0==1,” is the element information C0 after the syntax S0 is processed.

The S-RT 460 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

Finally, the DVT 470 refers to a partial decoder description in which Huffman table information to be used by each encoder/decoder is written. In each encoding, MPEG-1/2/4/AVC performs entropy coding. At this time, a Huffman coding method is mainly used. In this case, the Huffman table is used. It is required that the Huffman table information to be used by the pertinent decoder be provided in each decoding in order to realize an integrated codec. Accordingly, the decoder description in accordance with the present invention includes the Huffman table information corresponding to each of the syntax when the syntax is parsed. Of course, in case that the Huffman table information corresponding to each standard is already written in the description storing unit 510, the transmission of the DVT 470 will be omitted, or as shown in FIG. 11, it is possible to include a codec number (Codec #) and a profile and level number (Profile and level number) only.

As shown in FIG. 30 and FIG. 31, the DVT 470 includes a name of each Huffman table, an actual value outputted after being compressed by a Huffman coding and a code value used when the compressed actual value is stored in the typical bitstream 316. For example, if the actual value, 3, is obtained by compressing an MCBPC value, the code value of 011 is written in the typical bitstream 316 by a Huffman table mapping work (e.g. a process part of the SET 450). For another example, since VLD[1] is written in a process part of an index S77 (refer to FIG. 22 through FIG. 23) of the SET 450, a function VLD is called. The code value is obtained by reading the typical bitstream 316 in a length (i.e. a fixed length or a variable length) pre-determined by the function. Then, the corresponding actual value can be obtained by the Huffman table mapping work. At this time, a Huffman table [1], which is the first table CBPY, is used.

The DVT 470 can be described by using a describing method such as a textual description or a binary description (i.e. a bit-converted binary code form). The minimum necessary data of the partial decoder description can be written in a similar scripting language.

Below is an example of the DVT 470 described in textual description.

DVT{((0,1), (1,001), (2,010), (3,011), (4,0001), (5,000001), (6,000010), (7,000011), (8,000000001), (9,NULL)) ((0,0011), (1,00101), (2,00100), (3,1001), (4,00011), (5,0111), (6,000010), (7,1011), (8,00010), (9,000011), (10,0101), (11,1010), (12,0100), (13,1000), (14,0110), (15,11), (16,000000), (17,000001), (18,NULL)) ((0,011), (1,11), (2,10), (3,010), (4,001), (5,0001), (6,00001), (7,000001), (8,0000001), (9,00000001), (10,000000001), (11,0000000001), (12,00000000001), (13,NULL)) ((0,11), (1,10), (2,01), (3,001), (4,0001), (5,00001), (6,000001), (7,0000001), (8,00000001), (9,000000001), (10,0000000001), (11,00000000001), (12,000000000001), (13,NULL)) . . . .

Below is another example of the DVT 470 described in binary description.

000000111111111111111111111111101111100001100011001000110100001 1011001000001001100000010011000001000110000011010010000000010000011111 0010000110010100101001010010000100100100101000110010001110011000001000 1001011001010001000110000011001000101001001010001000100001001000001000 1100001011001100000000011000000100000111110001101100010110001010000110 1000011001001000001001010000100110000001001110000001010000000000101001 0000000010101000000000010101100000000001000001111100010110001010000100 1000110010010000010010100001001100000010 . . . .

Each partial decoder description can be written in the binary description, to thereby reduce a storage space, improve processing efficiency and shorten the time taken to transmit the extended bitstream 305 including the decoder description. Below, Table 1 is an example of an overhead bit of textual description and binary description.

TABLE 1 Overhead of Textual/Binary Description (bytes) Table name Textual Description Binary Description SET 3653 1089 S-RT 4201 1122 F-RT 466 142 CSCIT 808 24 FU-CSCIT 151 37 FL 98 28 DVT 2599 259 Total 11,976 2,702

Described below is a linking operation between partial decoder descriptions to be used by the parsing functional unit 610 and/or the connection control unit 534.

In accordance with the present invention, the decoding processing unit 320 of the decoder 300 can start to be operated in various ways. Some examples are described below.

One example, which is applicable to the decoding processing unit 320 of FIG. 5, is to control the processing relationship (e.g. operation sequence and connection) of each functional unit of the toolbox 515 by using connection control information and CSCI control information received from the decoder forming unit 520. According to this method, as shown in the F-RT 420, the parsing functional unit 610 is firstly loaded among the functional units of the toolbox 515, to thereby allow the element information, evaluated by allowing the typical bitstream to be syntax-parsed, to be stored in the CSCI storing unit 532. Then, if the control authority is returned to the connection control unit 534 (e.g. to allow the control authority to return to the connection control unit 534 like the index R72 of the S-RT 460), the corresponding functional unit is loaded to process a following operation, to thereby control the connection of each functional unit.

According to another method, which is applicable to the decoding processing unit 320 of FIG. 6, if the parsing functional unit 610 having received the syntax parsing control information is independently operated and completes the syntax parsing of the typical bitstream, the connection control unit 534 having received the connection control information controls the connection through the selective loading of decoding functional units. In this case, the connection control unit 534 must previously recognize whether some or all of the element information is completed to be stored in the CSCI storing unit 532. Herein, the connection control unit 534 must continuously monitor whether the necessary element information is stored in the CSCI storing unit 532 or allow the parsing functional unit 610 having stored the element information to report this to the connection control unit 534 (e.g. to allow the control authority to return to the connection control unit 534 like the index R72 of the S-RT 460). Of course, the connection control unit 534 (or a functional unit loaded by the control of the connection control unit 534) and/or the parsing functional unit 610 can be obviously on standby after starting its operation without monitoring whether the necessary element information is stored in the CSCI storing unit 532 until the necessary information is stored in the pertinent storing unit.

Another example, which is applicable to the decoding processing unit 320 of FIG. 5 and/or FIG. 6, is to start to operate the decoding processing unit 320 by allowing the decoder forming unit 520 to transfer the CSCI control information and the connection control information to the connection control unit 534 and/or the parsing functional unit 610.

Hereinafter, a linking operation of each partial decoder description being used by the parsing functional unit 610 and/or the connection control unit 534 will be described based on the first aforementioned embodiment of the present invention.

Firstly, the connection control unit 534 can read first rule information (Rule) of the F-RT 420 from the description storing unit 510 to call a pertinent functional unit. As shown in the F-RT 420, the connection control unit 534 firstly reads F0(R0) and load the parsing functional unit of the toolbox 515 in order to start the processing. This may result in allowing processing blocks of the program codes corresponding to the parsing functional unit 610 to be activated. According to the FL 410, F0 can be a parsing functional unit. If the selected functional unit is the parsing functional unit 610, information (e.g. F0(R0) and F0(R114)) related to which syntax is to be read and processed.

The parsing functional unit 610 reads a pertinent syntax by reading rule information (this can be the information processed by the information processing unit 524) designated by the connection control unit 534 (i.e. the F-RT 420) among the rule information (Rule) of the S-RT 460. Since the rule information designated by the F-RT 420 is F0(R0) in the above, the parsing functional unit 610 starts the processing from R0. The parsing functional unit 610 recognizes that a syntax S0 is to be processed in an index R0 by the S-RT 460 and the syntax S0 is a visual object sequence start code. The parsing functional unit 610 also reads a corresponding bit (i.e. 32 bits determined as an input value for the SET 450) from the typical bitstream 316 to generate a corresponding output value (i.e. element information C0) and store it in the CSCI storing unit 532. The CSCIT 440 describes which pertinent element information is stored in the CSCI storing unit 532. Next, the parsing functional unit 610 puts the element information (i.e. C0) stored in the CSCI storing unit 532 into the branch information corresponding to the S-RT 460 and proceeds in order to process an index corresponding to the result. For example, branch information corresponding to the index R0 is “C0==1.” If this condition is satisfied, it proceeds to an index R1. Otherwise, it is processed as an error. This operation is continued until it encounters “GO RT” to allow the control authority (e.g. the index R72 of the S-RT 460) to be transferred to the F-RT 420 (i.e. the connection control unit 534).

However, while the parsing function unit 610 uses the SET 450 to generate element information and to store the generated element information in the CSCI storing unit 532, if a VLD function (e.g. an index S74 of the SET 450) is called, the entropy decoding is performed by using the DVT 470. At this time, if the element information is generated, the generated element information is stored in the CSCI storing unit 532.

If there is ‘GO RT’ in the processing operation of the parsing functional unit 610 and the control authority is transferred to the F-RT 420 (i.e. connection control unit 530) (e.g. index of R72 of the S-RT 460), the connection control unit 534 reads C 63 (i.e. element information according to the index of S57 of the SET 450 in the syntax parsing operation), which is, the input value of an index R0 of the F-RT 420 from the CSCI storing unit 532 and designates a next index to be processed by substituting it for branch information (i.e. ((C63==1)∥(C63==2)) or ((C63==3)∥(C63==4))). In other words, depending on whether the branch information is satisfied, it is determined whether it proceeds to an index R1, is ended or is processed as an error.

If it proceeds to the index R1, a predetermined processing (e.g. variable declaration, memory setting and variable initialization) is performed, and then, the next index to be processed is determined.

As described above, if some/all element information is stored in the CSCI storing unit 520 by the processing of the parsing functional unit 610, the connection control unit 534 calls a functional unit F1 in an index R6. F1 is identified as the DC reconstruction (DCR).

The DCR recognizes 4 input values (i.e. C54, C56, C58 and C65) by referring to the FU-CSCIT 430 and reads element information from the CSCI storing unit 532. It can be recognized through the mapping to the CSCIT 440 what is the pertinent element information. The DCR completes the processing of the video data having a predetermined macro block size for the pertinent functional unit by using the read element information and stores the processed video data in a buffer memory or the CSCI storing unit 532.

Such an operation, as shown in F-RT 420, is repeated form the index of R6 to R11 of the F-RT 420. Accordingly, the DCR, IS, IAP, IQ, IT and VR are controlled so as to be successively connected. The connection control unit 534 can recognize whether a functional unit completes the processing. If the processing of the pertinent functional unit is completed, the processing of the following functional unit is ordered to be processed. Moreover, the corresponding functional unit stores the processed data in a predetermined buffer memory or the CSCI storing unit 532, to process the video data of the following functional unit. The method by which the connection control unit 532 recognizes whether a functional unit completes the processing is evident to those of ordinary skill in the art, and the pertinent description will be omitted.

The decoding processing unit 320 can output video data corresponding to the inputted typical bitstream 316 by allowing the connection control unit 534 to control the processing to be performed according to the aforementioned operation, which is an index sequence written in the F-RT 420 and/or an index sequence depending on the branch condition.

As understood through the foregoing description, a linking loop between partial decoder descriptions of the present invention can be roughly classified into two types. That is, a F-RT loop is formed to include the F-RT 420, the FL410, the FU-CSCIT 430, the F-RT 420, a CSCIT (branch condition application, for example) and a F-RT (next rule). An S-RT loop is formed to include the S-RT 460, the SET 450, the CSCIT 440, the S-RT 460, the CSCIT (branch condition application, for example) and the F-RT (next rule).

The F-RT loop can be also classified into two types as follows. Firstly, in the case of ordering the execution of the decoding functional unit, the F-RT loop is formed to include the F-RT 420, the FL 410, the FU-CSCIT 430, the F-RT 420, the CSCIT (branch condition application, for example) and the F-RT (next rule). Secondly, in the case of ordering the execution of the parsing functional unit, the F-RT loop is formed to include the F-RT 420, the FL 410, (S-RT loop), the F-RT 420, the CSCIT (branch condition application, for example) and the F-RT (next rule).

The S-RT loop can be also classified into two types as follows. Firstly, in the case of branching into the next rule, the S-RT loop is formed to include the S-RT 460, the SET 450, the CSCIT 440, the S-RT 460, the CSCIT (branch condition application, for example) and the F-RT (next rule). Secondly, in the case of returning to the F-RT 420, the S-RT loop is formed to include the S-RT 460, the SET 450, the CSCIT 440, the S-RT 460, the CSCIT (branch condition application, for example) and the F-RT (index of the called F-RT 420).

The connection control of the connection control unit 534 according to the F-RT 420 may cause the connections of functional unit of the toolbox 510 to be different from one another.

Hereinafter, the commands forming each partial decoder description will be described in detail.

FIG. 32 is an example of commands for constituting each partial decoder description in accordance with an embodiment of the present invention. Information for parsing the syntax of a standard such as MPEG-2/MPEG-4/MPEG-4 AVC (i.e. a partial decoder description) can be formed by using each of the commands. Described below is a linking relationship between partial decoder descriptions for parsing MPEG-2 main profile (MP) intra coded syntaxes and each partial decoder description.

As shown in FIG. 32, each partial decoder description can be formed to include the commands such as READ, SEEK, FLUSH, IF, WHILE, UNTIL, DO˜WHILE, DO˜UNTIL, BREAK, SET, STOP and PUSH. Of course, all commands are unnecessary for being used in each of the partial decoder descriptions. It shall be obvious that any command can be selectively used per each partial decoder description. The use of each command will be briefly described below.

Firstly, READ is the command for reading a bit from a bitstream, used as, for example, “READ bits B>CSCI;”. Here, “bits” indicates the number of bits to be read. “B” refers to a byte-alignment flag. “>CSCI” indicates a CSCI index to be stored. “B” and “>CSCI” are used as options. If “>CSCI” is not designated, it is determined to be stored in the IBS only.

Next, SEEK is the command for reading a bit from a bitstream but allowing a file pointer not to be moved. The file pointer refers to a reference position for the operation such as reading a bit. A parameter of the SEEK command can be applied identically to the above-described READ.

FLUSH is the command for moving the file pointer at a bitstream by as many as the number of the bits. Its parameter can be applied identically to the READ.

IF is the command for providing the branch according to a given condition, used as “IF (condition) {˜} ELSE {˜}”.

WHILE is the command for repeatedly performing a designated block during a period of time, used as “WHILE (condition) {˜}” while the given condition is true.

UNTIL is the command for repeatedly performing a designated block during a period of time, used as “UNTIL (condition) {˜}” until the given condition is true.

DO˜WHILE is the transformation of the WHILE command and the command for performing a block prior to the conditional determination, used as “DO {˜} WHILE (condition)”.

DO˜UNTIL is the transformation of the UNTIL command and the command for performing a block prior to the conditional determination, used as “DO {˜} UNTIL (condition)”.

The form (˜) (compute) is used as, for example, “(C11=(V2+3));”. In other words, all computing formulas of SET-PROC can be written in parentheses, and operators such as arithmetic (i.e. addition, subtraction, multiplication and division), substitution, addition/subtraction, (++/−−), bit operation, logical sum/logical product and checking whether CSCI is used.

BREAK is the command for being released from a nearest loop.

SET is the command for setting a flag related to whether to use the designated CSCI. The CSCI to designate flags can be arranged and broken by a comma. For example, the CSCI can be broken as SET C0, C2.

STOP is the command for stopping processing the currently-processed syntax element and turning to a next operation.

PUSH is the command for adding given data in the back of written data in an array-type CSCI. The added values are arranged and broken by a comma (e.g. PUSH C8 8, 16, 32;).

GO is the command for branching into a specified position. For example, GO R#,; indicates branching into R#, and GO RT indicates returning to a called position.

HEX is the command for reporting that a hexadecimal follows the HEX command.

RLD is an interface for an RLD function supportable in MPEG-4, used as “RLD index, level, run, islastrun, t#;”. Here, index, level, run and islastrun indicate an internal variable and CSCI storing an RLD return value. t# indicates a Huffman table ID used for RLD.

VLD2 is a VLD function for MPEG-2, used as “VLD2 [t#] in >v1, v2, v3;”. Here, “t#” indicates a Huffman table ID used for RLD, and “in” indicates an index value to be inputted. “v1”, “v2” and “v3” indicate an output result value.

Finally, VLD4 is a VLD function for MPEG-4, used as “VLD4 [#]>CSCI;”. Here, t# indicates a Huffman table ID used for RLD, and “>CSCI” indicates a CSCI index to be stored. If “>CSCI” is not designated as an option, it is determined to be stored in a variable IBS only.

The detailed examples of partial decoder descriptions (i.e. partial decoder descriptions for the syntax processing for MPEG-2 MP intra coding) formed by the aforementioned commands are illustrated through FIG. 33 and FIG. 57. In detail, the SET 450 is shown in FIG. 33 through FIG. 39, the S-RT 460 in FIG. 40 through FIG. 44, the CSCIT 440 in FIG. 45 through FIG. 49, the FL 410 in FIG. 49, the F-RT 420 in FIG. 50, the FU-CSCIT 430 in FIG. 51 and the DVT 470 in FIG. 52 through FIG. 57.

Since the linking relationship between partial decoder descriptions has been already described in detail, the generalization of the linking relationship will be briefly described below.

The linking between the partial decoder descriptions for the syntax parsing is firstly performed in the order of the index of the F-RT 420 (refer to FIG. 50). In other words, the linking is started from the index R0 of the F-RT 420.

The R-RT 420 recognizes the index number (F#) of the functional unit corresponding to the index number (R#) to be currently processed. For example, if the index number to be currently processed is R0, F0 (i.e. the parsing functional unit of the FL 410) is recognized. If the index number to be currently processed is R9, F1 (i.e. the DCR of FL 410) is recognized.

First, the case in which a pertinent functional unit is a syntax parser (i.e. the index number F0 of the FL 410) by the recognized index number will be described.

R# is recognized by using “F#(R#)” information written in a “FU” field of the F-RT 420, and an index of S# corresponding to the index of R# in the S-RT 460 is recognized. For example, “F0(R0)” is written in the “FU” field of the index R0 of the F-RT 420, and R0 corresponds to S0 of a syntax field of the S-RT 460.

Then, “Process by SET-PROC” corresponding to the recognized S# is recognized in the SET 450. For example, “Process by SET-PROC” of the SET corresponding to the S0 of the syntax field of the S-RT 460 is “READ 32 B; IF (IBS==HEX:000001B3) C72=1; IF (IBS==HEX:000001B8) C72=2; IF (IBS==HEX:00000100) C72=3; IF (IBS==HEX:000001B7) C72=4;”.

The result of calculating the “Process by SET-PROC” of the SET 450 is stored corresponding to C# of an “output” field of the pertinent index S#. For example, the “Process by SET-PROC” of the SET corresponding to the S0 of the syntax field of the S-RT 460 is stored as C72.

If the calculated result is completed to be stored, it is determined by re-referring to the S-RT 460 which branch information the stored CSCI information satisfies. In the case of the index R0 of the S-RT 460, it is determined which one of the branch information “1: (C72==1) GO R1; 2: (C72==2) GO R39; 3: (C72==3) GO R47; and 4: (C72==4) GO RT;” C72 of the CSCI satisfies. In the case of satisfying any one of 1 through 3 in the aforementioned 4 conditions, it proceeds to the corresponding index R# in the S-RT 460, and the aforementioned operation is repeated. However, in the case of satisfying the fourth condition (i.e. (C72==4) GO RT), the operation returns to the F-RT 420.

Then, the case in which the pertinent functional unit is not the parsing functional unit (i.e. the index number F0 of the FL 410) by the recognized index number will be described.

The number of an input CSCI corresponding to the pertinent F# is recognized by using the FL 410 and the “F#” information written in the “FU” field of the F-RT 420. For example, “F1” is written in the “FU” field of the index R9 of the F-RT 420. In the FL 410, F1 is the DCR, and the request of 4 input CSCI is written.

If the number of input CSCI required by referring to the FL 410 is not zero, the CSCI value C# corresponding to an “F#(C#)” field is recognized by referring to the FU-CSCIT 440, and the corresponding value is read in the CSCI storing unit 520.

Then, the pertinent functional unit generates output data by using inputted data (e.g. MB data) and input CSCI values and then returns to the F-RT 420.

As described above, in case that the pertinent functional unit is not the syntax parser (i.e. the index number F0 of the FL 410), if it satisfies “GO RT” and the pertinent functional unit is not the syntax parser, a predetermined operation is completed, and then it returns to the F-RT 420.

The F-RT 420 determines the branch condition according to the C# of the current step, and it proceeds to the corresponding step. If the satisfied condition is END (e.g. (C72==4) GO END;), the syntax parsing is ended. If the satisfied condition is ordered to the R# (e.g. GO R1), it proceeds to the pertinent index.

FIG. 9 shows the structure of an extended bitstream in accordance with a first embodiment of the present invention, and FIG. 10 shows the structure of an extended bitstream in accordance with a second embodiment of the present invention. FIG. 11 shows the structure of an extended bitstream in accordance with a third embodiment of the present invention, and FIG. 12 shows the structure of an extended bitstream in accordance with a fourth embodiment of the present invention.

As shown in FIG. 9 through FIG. 11, the decoder description included in the extended bitstream 305 of the present invention can be formed so as not to include partial decoder description information but to include applied standard information (no table), so as to include all table information (full tables) and so as to include only some table information (partial tables). In order to identify each of them, the decoder description information can include stream identifier (SI) information. The SI information can be distinguished as shown in the following Table 2.

TABLE 2 Stream Identifier SI Decoder description 00 No table 01 Full tables 10 Partial tables

As shown in FIG. 9, the extended bitstream 305, which is decoder description (i.e. the encoded decoder description 313, which is decoded to a partial decoder description by the description decoder 505; the same is applied hereinafter), can include an S1910 (i.e. 00) indicating “not including the partial decoder description information” and a codec number 920 and a profile and level number 930.

This shows the case of not sending the partial decoder description information but using the partial decoder description information already stored in a description storing unit 510. Although the pertinent typical bitstream 316 sends basic information related to the used codec and profile and level, the decoding processing unit 320 can perform the decoding by using the ordered partial decoder description.

For this, the SET(450), the CSCIT(440), the FL(410), the FU-CSCIT(430) and the DVT(470) can be described per applied standard (i.e. codec), and the F-RT 420 and the S-RT 460 can be described per profile of each applied standard (refer to Tables 3 and 4.

TABLE 3 Partial decoder descriptions per codec Standard Partial decoder description MPEG-1 SET #1 FL #1 FU-CSCIT #1 CSCIT #1 DVT #1 MPEG-2 SET #2 FL #2 FU-CSCIT #2 CSCIT #2 DVT #2 MPEG-4 SET #3 FL #3 FU-CSCIT #3 CSCIT #3 DVT #3 AVC SET #4 FL #4 FU-CSCIT #4 CSCIT #4 DVT #4

TABLE 4 Partial decoder descriptions per profile and level SI Partial decoder description MPEG-1 F-RT #1-1 S-RT #1-1 MPEG-2 MP F-RT #2-1 S-RT #2-1 MPEG-4 SP F-RT #3-1 S-RT #3-1 MPEG-4 ASP F-RT #3-2 S-RT #3-2 AVC BP F-RT #4-1 S-RT #4-1

In the case of MPEG-4 SP, the decoding method can be described by using SET#3, FL#3, CSCIT#3, FU-CSCIT#3, DVT#3, F-RT#3-1, and S-RT#3-1. If the codec number is designated as 3 and the profile and level number is designated as 2, the decoding processing unit 320 can perform the decoding operation by referring to the corresponding partial decoder descriptions (i.e. by using the corresponding information processed by the information processing unit 524).

As shown in FIG. 10, the extended bitstream 305, which is a decoder description, can include all aforementioned partial decoder description information. In this case, when referring to Table 2, the S1910 will be set as 01. Each partial decoder description can include a table identifier (IT) 1010, a table start code (TS code) 1020, a table description (TD) 1030 and a table end code (TE code) 1040. The order of the IT 1010 and the TS code 1020 can be changed, and the TD 1030 can be described in a form of binary description. Of course, the order of each partial decoder description can be changed.

Moreover, as shown in FIG. 11, the extended bitstream 305, which is the decoder description, can include some aforementioned partial decoder description information and a codec number corresponding to some partial decoder description information. In this case, when referring to Table 2, the S1910 will be set as 10. However, in this case, since the format of the partial decoder description information is not unified, a format identifier 1110 can be further equipped behind the TI 1010 so as to determine the format of the pertinent table information.

As illustrated in FIG. 12, the extended bitstream 305 can further include a decoder description (T-DD) 1210 related to the partial decoder description information and renewing information. The T-DD 1210 can be any one of the decoder descriptions described with reference to FIG. 9 through FIG. 11, and the S1910 will be set as the corresponding value. The renewing information can include a revision start code (RS code) 1220 and a revision 1230.

The revision 1230, in which a regulation rule of a partial decoder description is added, deleted and renewed, can be provided in a form of “insert index into table-name ( )”, “delete index from table-name;” and “update index in table-name( )”.

For example, in the case of adding S100 into a SET#4, the revision 1230 can be provided in a form of “insert S100 into SET#4 (“READ 1;IF(IBS==1){SET C31;}“);”. In the case of deleting R31 from a S-RT#3-1, the revision 1230 can be provided in a form of “delete R31 from S-RT#3-1;”. In the case of updating R7 in a F-RT#2-1, the revision 1230 can be provided in a form of “update R7 in a F-RT#2-1 (F6, 1: (C66<=6) GO R5; 2: (C65<=C67) GO R4; 3: GO R12;);”.

While the description decoder 405 reads the revision 1230 and the decoding of the pertinent extended bitstream 305 is performed, the partial decoder descriptions of their changed revisions are stored in the description storing unit 510. However, once the decoding is completed, the pertinent partial decoder descriptions stored in the description storing unit 510 must be returned to their original state. It is possible to recognize whether the decoding is completed by allowing the decoder forming unit 520 or the decoding solution 530 to provide the completing notice to the description decoder 405 or the description decoder 405 to monitor whether the decoding is completed.

As described above, in accordance with the present invention, the conventional profile can be used by using a functional unit provided by the conventional standard (i.e. codec), and a new decoder can be configured by using the conventional functional unit. Moreover, a new decoder can be realized by using a new functional unit. In other words, a decoder can be embodied without any restriction.

However, in the case of adding a new functional unit into the toolbox 510, the algorithm (i.e. a description related to the functional unit) related to the pertinent functional unit must be added, and the pertinent information must be added into the FL 410. In this case, a compile operation related to the algorithm can be required.

To realize a unified codec, each element must be organically controlled such that a bitstream, encoded by various encoding methods, can be parsed and decoded by a decoding method corresponding to the pertinent encoding method.

In this case, the pertinent bitstream can be a bitstream formed in various forms mixed with diverse standards (codecs) or generated by various encoding methods in one standard. Moreover, various functional units used in the diverse standards must be divided into separate units, and the only function necessary for a user must be selected to make one codec (encoder or decoder), in order to support various decoding/encoding methods.

As described above, the present invention can organically connect and control each functional unit by an identical information analyzing method regardless of the encoding method encoded with a bitstream by allowing a decoder description to be provided.

Moreover, although the syntax of a bitstream is changed or newly added, the appropriate processing can be performed by only modifying the pertinent information of the S-RT 460 or only inserting the additional information. It is also possible to control the connection of decoding functional units of a pertinent decoder or whether the decoding functional units are operated by selecting a function necessary for a user and forming the F-RT 420 in processing units of bitstream level, frame level and MB level.

FIG. 13 shows the structure of an extended bitstream in accordance with a fifth embodiment of the present invention, and FIG. 14 shows the structure of an extended bitstream in accordance with a sixth embodiment of the present invention. FIG. 15 shows the structure of an extended bitstream in accordance with a seventh embodiment of the present invention, and FIG. 16 shows the structure of an extended bitstream in accordance with an eighth embodiment of the present invention.

The extended bitstream 305 of the present invention includes a decoder description (DD) area and the typical bitstream 316. It is evident to those of ordinary skill in the art that the typical bitstream 316 is formed to include coded video data (and/or coded audio data).

Here, the DD area can be formed in different structures according to the codec properties to be applied to decode the typical bitstream 316. In other words, firstly, in the case of using one standardized codec, a first decoder description structure can be applied.

Secondly, in the case of changing some contents of one conventional standardized codec (i.e. using some of the 7 aforementioned partial decoder descriptions as they are and modifying and using the other partial decoder descriptions), a second decoder description structure can be applied.

Thirdly, in the case of processing and using a plurality of conventional standardized partial decoder descriptions (i.e. selectively using the conventional standardized partial decoder descriptions for some of the 7 aforementioned partial decoder descriptions and modifying and using the other partial decoder descriptions), a third decoder description structure can be applied.

Finally, in the case of using a new codec that is not conventionally standardized (including and transmitting all 7 aforementioned partial decoder descriptions formed to include new contents), a fourth decoder description structure can be applied.

The 4 aforementioned structures of the decoder descriptions can be classified as different codec type information, respectively. For example, the first decoder description structure is set as “codec_type=0”. The second decoder description structure is set as “codec_type=1”. The third decoder description structure is set as “codec_type=2”. The fourth decoder description structure is set as “codec_type=3”.

FIG. 13 shows a first decoder description structure.

In accordance with the first decoder description structure shown in FIG. 13, the decoder description area can include a codec type 1250, a codec number 1252 and a profile and level number 1254. In other words, in accordance with the first decoder description structure, the decoder description area is described based on only information related to the codec to be applied. Although the drawings assume that each field is 8 bits, it shall be obvious that the size of each field can be adjusted depending on the magnitude of information to be represented.

The codec type 1250 will be set as zero (i.e. codec_type=0). This shows the case of using one of various conventional standardized codecs as it is.

FIG. 14 shows a second decoder description structure.

In accordance with the second decoder description structure shown in FIG. 14, the decoder description area can include a; codec type 1250, a codec number 1252, a profile and level number 1254 and a table description 1256. In other words, in accordance with the second decoder description structure, the decoder description area is described based on information related to the codec to be applied and modified contents of 7 partial decoder descriptions. Here, the table descriptions are individually equipped for the 7 partial decoder descriptions, respectively. In other words, there can be 7 table descriptions in the decoder description area.

Each table description 1256, as shown in FIG. 14, can include a table start code 1258, a table identifier 1260, a table type 1262, a content 1263 and a table end code 1264. Of course, the size of each field can be increased or decreased as necessary. Moreover, as described below, the content 1263 can be omitted or included according to the information of the table type 1262.

For example, if the table type 1262 has the value of zero, the table descriptions 1256 can be recognized so as to be applied without modification of an existing partial decoder description (i.e. a partial decoder description recognized by the codec type 1250, the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, the content 1263 can be omitted.

However, if the value of the table type 1262 is 1, the table description 1256 can be recognized so as to partially modify (i.e. modify to the contents defined in the contents 1263) and use an existing partial decoder description (i.e. a partial decoder description recognized by the codec type 1250, the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, the changed content (e.g. an update command) can be described in the content 1263. For example, the modified content (e.g. the update command) can be the information including commands such as update, insert, and/or delete and modifying the contents of the index corresponding to the pertinent partial decoder description.

However, if the value of the table type 1262 is 2, the table description 1256 can be recognized so as to completely modify (i.e. modify to the contents defined in the contents 1263) and use an existing partial decoder description (i.e. a partial decoder description recognized by the codec type 1250, the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, the modified contents (e.g. contents for newly defining the pertinent partial decoder description such as a new command) can be described in the content 1263.

FIG. 15 shows a third decoder description structure.

In accordance with the third decoder description structure shown in FIG. 15, the decoder description area can include a codec type 1250 and a table description 1256. In other words, in accordance with the third decoder description structure, the decoder description area is described based on the information related to the codec to be applied and the modified contents of the 7 partial decoder descriptions. Here, the table descriptions are individually equipped in the 7 partial decoder descriptions, respectively. In other words, there can be 7 table descriptions in the decoder description area.

Each table description 1256, as shown in FIG. 15, can include the table start code 1258, the table identifier 1260, the table type 1262, the content 1263 and the table end code 1264. Of course, the size of each field can be increased or decreased as necessary.

For example, if the value of the table type 1262 is zero, the table description 1256 can be recognized so as to be applied without modification of an existing partial decoder description (i.e. a partial decoder description recognized by the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, there are described the codec number 1252 and the profile and level number 1254, corresponding to the partial decoder description to be applied to fields of the content 1263.

However, if the value of the table type 1262 is 1, the table description 1256 can be recognized so as to partially modify (i.e. modify to the contents defined in the modified contents 1266) and use an existing partial decoder description (i.e. a partial decoder description recognized by the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, the modified content (e.g. update command) can be described in the content 1263, and the modified contents (e.g. the update command) can be described in a field of the modified contents 1266.

However, if the value of the table type 1262 is 2, the table description 1256 can be recognized so as to completely modify (i.e. modify to the contents defined in the field of the content 1263) and use an existing partial decoder description (i.e. a partial decoder description recognized by the codec type 1250, the codec number 1252, the profile and level number 1254 and the table identifier 1260). In this case, the modified content (e.g. content for newly defining the pertinent table such as a new command) can be described in the content 1263. In other words, as described above, if the table type 1262 is zero or 1, a specific codec is used as it is or some partial decoder descriptions are modified and used. Accordingly, the information related to the codec (i.e. the codec number 1252 and the profile and level number 1254) is required. If the table type 1262 is 2, completely new partial decoder description information is defined. Accordingly, the additional codec information is not necessary.

FIG. 16 shows a fourth decoder description structure.

In accordance with the fourth decoder description structure shown in FIG. 16, the decoder description area can include the codec type 1250 and the table description 1256. In other words, in accordance with the fourth decoder description structure, the decoder description area is described based on the 7 partial decoder descriptions. The table descriptions are individually equipped in the 7 partial decoder descriptions, respectively.

Each table description 1256, as shown in FIG. 16, can include the table start code 1258, the table identifier 1260, the table type 1262, the content 1263 and the table end code 1264. Of course, the size of each field can be increased or decreased as necessary.

For example, if the value of the table type 1262 is a predetermined value (e.g. 2), the information for describing a new table corresponding to the table identifier 1260 (e.g. contents for newly defining the pertinent partial decoder description such as the new command) is displayed in the field of the content 1263. As described above, in case that the codec type 1250 is 3, it is recognized that the decoding is performed by using new partial decoder descriptions. Accordingly, one table type 1262 can be designated or the table type 1262 can be omitted.

Hereinafter, the syntax structure of the decoder description area and the syntax structure of each field are shown in each table below.

TABLE 5 Decoder Description Decoder_Description( ) { No. of bits codec_type 8 if ((codec_type==0x00) ∥ (codec_type==0x01)) { Codec_Description( ) } if (codec_type!=0x00) { do { Table_Description( ) } while (next_bits( )==table_idetifier) } }

TABLE 6 Codec Description Codec_Description( ) { No. of bits codec_num 8 profile_level_num 8 }

TABLE 7 Table Description No. of Table_Description( ) { bits table_start_code 24 table_identifier 4 table_type 4 if ((table_type ==‘0000’) || (table_type ==‘0001’)) { if (codec_type==0x02) Codec_Description( ) if (table_type ==‘0001’) Update_Description( ) } if (table_type ==‘0010’) { New_Description( ) } table_end_code 24 }

TABLE 8 Update Description Update_Description( ) { No. of bits Mnemonic Update_Command vlclbf }

TABLE 9 New Description New_Description( ) { No. of bits Mnemonic New_Command vlclbf }

Hereinafter, the semantics of the decoder description are described in each table below.

TABLE 10 Decoder Description codec_type Meaning 0x00 A profile@level of an existing MPEG standard 0x01 Some parts of the existing one profile@level changed 0x02 Some parts of the existing multiple profile@level changed 0x03 A new decoding solution 0x04-0xFF RESERVED

Here, the codec type, which is an 8 bit code, can be information for identifying the codec type.

TABLE 11 Codec Description codec_num MPEG standards and others 01 MPEG-1 02 MPEG-2 03 MPEG-4 Part 2 04 MPEG-4 Part 10 (AVC) 05-FF RESERVED

Here, the codec type, which is an 8 bit code, can be information for indicating the code of a used codec code. The profile and level number, which is an 8 bit code, can be also information for directing to the number of the profile and level for the codec. The profile and level number can be identical to that of the standard of each MPEG standard.

TABLE 12 Table Description (Table identifier) table_identifier table name 0000 SET (Syntax Element Table) 0001 S-RT (Syntax Rule Table) 0010 CSCIT (CSCI Table) 0011 DVT (Default Value Table) 0100 FL (FU List) 0101 F-RT (FU Rule Table) 0110 FU-CSCIT (FU CSCI Table) 0111-1111 RESERVED

Here, the table start code can be 0xFFFFFE of hexadecimal 26-bit text strings, which refers to the start of the table description. The table identifier can be a 4 bit code as shown in the table 12 above.

TABLE 13 Table Description (Table type) table_type Meaning 0000 conventional table 0001 updated table 0010 new table 0011-1111 RESERVED

Here, the codec type, which is a 4 bit code, can be information for determining whether to maintain an existing partial decoder description, to update the existing partial decoder description or to generate a new partial decoder description. The table end code can be 0xFFFFFE of hexadecimal 26-bit text strings, which refers to the end of the table description.

TABLE 14 Ordering set for update_command Code Instruction Usage 00 UPDATE UPDATE [index#] in [table#] [a record]; 01 INSERT INSERT into [table#] [a record]; 10 DELETE DELETE [index#] from [table#]; 11 RESERVED

Here, index# can be a 4-bit string directing to the index number of a partial decoder description, and table# can be a 32-bit string as the table identifier.

TABLE 15 Ordering set for new_command Code Instruction Usage 00000001 READ READ bits B > CSCI; 00000010 SEEK SEEK bits B > CSCI; 00000011 FLUSH FLUSH bits B; 00000100 IF IF (condition) { ~ } ELSE { ~ } 00000101 WHILE WHILE (condition) { ~ } 00000110 UNTIL UNTIL (condition) { ~ } 00000111~0 DO~WHILE DO { ~ } WHILE (condition) 00000111~1 DO~UNTIL DO { ~ } UNTIL (condition) 00001000 (~) (compute) ( . . . ) 00001001 BREAK BREAK; 00001010 SET SET CSCI, CSCI; 00001011 STOP STOP; 00001100 PUSH PUSH CSCI Value, Value ; 00001101 RLD RLD index, level, run, islastrun, t#; 00010010 VLD2 VLD2 [T#] in > v1, v2, v3; 00010100 VLD4 VLD4 [T#] > CSCI;

Here, “bits” is any one of 3 through 34 bits for indicating the number of the requested bits, and “B” is a 1-bit string indicating a byte alignment. “>” is a 1-bit string for printing left output, and VLD2(for MPEG-2) and VLD4(for MPEG-4) are functions for entropy coding.

FIG. 17 is a block diagram showing an encoder in accordance with an embodiment of the present invention.

The encoder 1300 of the present invention further includes an extended bitstream generating and outputting unit 1310 as compared with the conventional encoder 200 described below with reference to FIG. 2. The extended bitstream generating and outputting unit 1310 generates a decoder description by using control information (e.g. a list and the connection of the used functional units, the input data of the pertinent functional units, the syntax information and the syntax connection information) in the generating operation of the typical bitstream 316 generated by the processing of the prior operation. The extended bitstream 305 is also generated by using the generated decoder description and the typical bitstream 316 to be transmitted to the decoder 300. Since the method of generating the decoder description is understood enough by any person of ordinary skill in the art with only aforementioned explanation, the pertinent description will be omitted.

The variable length encoding unit 235 of the present invention merely points to an element for finally performing the encoding to generate the typical bitstream 316 in an encoder 1300, but not limited to this embodiment of the present invention. This is not caused to restrict the scope of claims of the present invention.

FIG. 17 assumes the case of providing the extended bitstream 305, generated by using decoder description information and the typical bitstream 305, to the decoder.

However, as described above, the decoder description can be transferred in a form of separate data or bitstream to the decoder 300. In this case, it shall be obvious that the extended bitstream generating and outputting 1310 is not placed behind the variable length encoding unit 235, but a decoder description generating and outputting unit is provided independently of the conventional encoding unit, so as to provide independently generated information to the decoder 300.

Although the above description related to a unified codec device and a method thereof in accordance with the present invention has been described based on a decoder, the mutual relationship between a decoder and an encoder is evident to any person of ordinary skill in the art, and considering that the encoder can be easily formed through the detailed description related to the decoder only, it shall be obvious that the present invention is not limited to the decoder.

As described above, the unified codec device and the method thereof in accordance with the present invention make it easy to analyze a syntax element and control the connection of functional units in one standard (or codec) or between standards (or codecs). In other words, it is no problem to change the order of syntax elements in the bitstream generated according to a specific standard, to add a new syntax element or to delete the existing syntax element.

In accordance with the conventional art, the decoder was unable to properly decode the pertinent bitstream in the manipulation of the syntax element. For example, if the bitstream of ABC is changed to ACB before being transmitted, the decoder is unable to recognize the bitstream of ACB, to thereby making it impossible to properly decode the bitstream of ACB. Similarly, in the case of adding F and forming ABFC or deleting B and forming AC, the proper decoding is impossible.

However, according to the unified codec device and the method thereof in accordance with the present invention, since the decoder description information is provided in a form of being included in the extended bitstream or as separate data, the decoding operation of the decoder 300 can be smoothly performed.

It shall be obvious that although the above description related to a unified codec device and a method thereof in accordance with the present invention have been based on MPEG-4 AVC, MPEG-1, MPEG-2 and MPEG-4, other video encoding/decoding standards can be applied without any restriction.

Moreover, it shall be obvious that information included in each partial decoder description can be described by using not only information related to the connection of functional units for performing the decoding by one standard and information related to the processing operation required for the pertinent functional unit but also information for performing the decoding by a plurality of standards.

For example, it is assumed that a plurality of initial frames of encoded video data included in the extended bitstream are encoded by using MPEG-2, a plurality of following frames are encoded by using MPEG-4 and the other frames are encoded by using MPEG-1. In this case, it shall be obvious that partial decoder description information included in the decoder description for decoding the encoded video data will be realized such that the functional units according to each standard included in the toolbox 510 can be organically coupled and operated, in order that each frame having different encoding methods can be decoded.

Hereinafter, a compact decoder description language (CDDL) representing a method supporting a network language (NL) environment will be described in accordance with yet another embodiment of the present invention. The terms used for describing this embodiment will be defined as follows.

Firstly, the network language (NL), which is one of computer languages, is basic information necessary for forming a network between functional units in the decoder forming unit 520. The network language is also a reference language being used for forming a network in the current MPEG.

A CDDL, which refers to basic information for forming a decoder that decodes a bitstream in the decoder forming unit 520, can describe information related to all parts of the decoder, such as a syntax parsing and a network between functional units.

An abstract decoder model (ADM) refers to information (or a storing unit) necessary for forming a decoder, before the decoder is formed. Here, each information can be a partial decoder description or information formed by processing a pertinent decoder description. In this description, an element represented as the decoder forming unit 520 can be the ADM.

Finally, a network refers to a connection between functional units. It is possible to determine a network (i.e. the connection between functional units in a hierarchy) of each hierarchy to which the functional units individually pertain to perform the processing per hierarchic structure or the connection between networks in upper and lower hierarchic structures or between a functional unit and a lower network. In other words, the network can be defined as at least one of the connections between functional units, between a functional unit and a lower hierarchic network, and between an upper hierarchic network and a lower hierarchic network.

In order to complete one network, data such as input data which is inputted through at least one input port to the network, output data, which is outputted through the network, a parent network, to which the network pertains, a parameter, which the network declares, a parameter, which goes into the network, are required.

At least one name of input port and at least one name of output port can be described in a virtual network table (VNT) in order to designate input data or a corresponding port, inputted into the network, among the aforementioned data. The parent network, to which the network pertains, can be described in a functional unit instance table (FUIT) when the network is created, and a field describing a parent index is included. This can show how networks are included. The parameter which the network declares can also refer to a parameter table (PT). The PT includes a VNT index. When a functional unit is generated, it is possible to determine which parameters are generated in the pertinent network with reference to the VNT index of the PT. In the case of inheriting a parameter value through the parent network to use by referring to the PT index declared in the FUIT. Each network can be connected to each other through a network connection table (NCT) to receive and transmit described data from and to each other.

As described below, a purpose of this embodiment can be to show a method of representing a CDDL, so as to be compatible with a network language that can form an abstract decoder model (ADM) in the MPEG RVC standardization technology. The method of representing the CDDL can be represented so as to be compatible with contents capable of being described by using the network language by partially correcting the contents and/or format of the partial decoder description described in the aforementioned relevant embodiment of the present invention. Moreover, another purpose of this embodiment is to maximize the compression efficiency by representing the structure of an ADM by use of the CDDL and compressing it in a binary code.

In the foresaid embodiment, a network, which is a set of functional units, is regulated by the partial decoder descriptions such as an FRT, an FU-CSCIT, and an FLT.

The operation of decoding bitstream data by using a pertinent decoder description can be successively performed. However, it may be not sufficient to form an ADM. This is because a network structure (i.e., a hierarchical connection structure) should be possible in order to form the ADM, and each network and functional unit can be more efficient by having an input port and an output port.

Here, a port can be defined as parts of transmitting and receiving data in connection structures between functional units, between a functional unit and a network, and between upper and lower networks. In particular, the network language forms the ADM by using a control method according to data flow. Accordingly, in a network, a part for transmitting data is referred to as an output port, and a part for receiving data is referred to as an input port. The connection structure is described so as to allow data to be transmitted between networks or functional units in a network connection table (NCT). A port is necessary to form the connection structure between the networks. The port can be realized as a physical port according to realizing methods. The NCT describes which functional unit uses outputted data as an input value.

Yet another embodiment of the present invention attempts to modify and complement partial decoder descriptions of a CDDL corresponding to a network, which is a set of function units, so as to be compatible with ADM configuration information. There are 4 partial decoder descriptions of the CDDL that are modified to describe the network. The partial decoder descriptions can be a virtual network table (VNT), a functional unit instance table (FUIT), a network connection table (NCT), and a parameter table (PT). In other words, the new partial decoder descriptions such as the VNT, the FUIT, the NCT, and the PT replace the aforementioned FRT, FLT, and the FU-CSCIT. On the other hand, the SET, the SRT, and the CSCIT used for the syntax parsing have their inner roles, in which there is a little modification to acquire compatibility. The overall forms of the SET, the SRT, and the CSCIT, however, can be similar to what is described above. It shall be evident to any person of ordinary skill in the art that, even though the format and contents of the partial decoder descriptions are different from those of the aforementioned embodiment, an encoder can perform the corresponding processing without additional explanation. Moreover, although partial decoder descriptions forming a decoder description are partially modified, the forming format of the decoder description can be applied as described above. The pertinent description will be omitted.

Hereinafter, each of the newly replaced partial decoder descriptions will be described.

A virtual network table (VNT) refers to a partial decoder description describing information corresponding to a basic template. There is a possibility that networks, which are function unit sets, have the same structures and input data is not identical to output data. As such, a form that makes necessary objects based on the template after forming a basic template object is formed in order to efficiently realize a plurality of objects having the same structures but different inputs and outputs.

The VNT can be described in the form of “((FUID), INPUT PORTs, OUTPUT PORTs).” Here, when an actual functional unit is included in the toolbox 515, instead of the network, the FUID, which is an ID of the pertinent functional unit, refers to an inherent ID for calling a pertinent functional unit in a toolbox. There may be one or more input port(s) and one or more output port(s).

The VNT deals with both functional units, which are actually included in the toolbox and networks, which are considered as visual functional units. Since the network forming the connection structure of functional units has both an input port and an output port like functional units and provides connection information to each functional unit, the functional units that are not actually included in the toolbox can be considered as the virtual functional units. However, the virtual functional units that are not included in the toolbox and dynamically generated have no FUID, and no FUID will be described in the VNT Unlike functional units of the toolbox, at least two different networks have the same structures and functions. In order to efficiently describe the two different networks, at least two networks can be generated by storing a commonly describable part in the VNT and having different input values. For example, a network of DC_Reconstruction_(—)8×8 can describe the connection structure of MPEG4_algo_DCRaddressing_(—)8×8 and MPEG4_algo_DCRinvpred_chroma_(—)8×8. Here, both MPEG4_algo_DCRaddressing_(—)8×8 and MPEG4_algo_DCRinvpred_chroma_(—)8×8 can be functional units that are actually included in the toolbox.

Below is an example of realizing the VNT.

VNT (Virtual Network Table) { //Decoder (“BITS”, “VID”), //Parser (1, “BITS”, {“BTYPE_Y”, “BTYPE_U”, “BTYPE_V”, “MV_Y”, “MV_U”, “MV_V”, “B_Y”, “B_U”, “B_V”}), }

(“BITS”, “VID”) of a decoder part shows that an input of an input port is BITS and an output of an output port is VID. (1, “BITS”, {“BTYPE_Y”, “BTYPE_U”, “BTYPE_V”, “MV_Y”, “MV_U”, “MV_V”, “B_Y”, “B_U”, “B_V”}) of a parser part indicates FU ID #1 in the toolbox, and “BITS” shows that an input of an input port is BITS and there are 9 output ports of {“BTYPE_Y”, “BTYPE_U”, “BTYPE_V”, “MV_Y”, “MV_U”, “MV_V”, “B_Y”, “B_U”, “B_V”}.

Next, a functional unit instance table (FUIT) will be described. The FUIT stores main information for generating objects that are used as actually required networks based on a basic template, VNT information. The actually required networks can be represented by using an instance derived from the basic template. In other words, when the information for generating the networks is described, since there are networks having similar structures, some information may be overlapped. For example, if the networks for obtaining motion vectors are divided into two groups according to whether the networks are Luma blocks or Chroma blocks, the methods of computing motion vectors are the same but only the sizes of variables actually storing the block sizes are different. Accordingly, the present invention suggests the method of storing common information in the VNT and branching into other networks in the FUIT. For this, the concept of the instance and the template is applied. Moreover, the common information can be considered “templates” that can be formed in various ways. This model can be used to generate various forms of instance networks.

The FUIT can be described in the form of “(VNT Index, Parent VNT Index, Parameter Indexes)”. Basic template information for forming an instance of an actually required network is brought through the VNT Index. The Parent VNT Index indicates which upper template network uses the current instance. The Parameter Indexes include an index of a parameter table (PT) having information related to parameters being used in each network. The Parameter Indexes are formed to include at least one index. When an instance is generated, an initial value of a parameter can be inputted. The sign of colon (:) can be used for distinguishment.

Below is an example of realizing the FUIT.

{ //decoder (1, -, -) (2, 1, {6, 7, 1, 8, 9, 10, 11, 12, 13, 14, 15, 20, 19, 17, 18, 5}), (3, 1, {1, 8, 9, 7, 10, 11, 12, 13, 17, 18, 21}), (4, 1, {1, 8, 9, 7, 10, 11, 12, 13, 17, 18, 21}), (4, 1, {1, 8, 9, 7, 10, 11, 12, 13, 17, 18, 21}), (5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:1}), (5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:0}), (5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:0}), (6, 1, 4), //~decoder //texture_16x16 (7, 3, 7), (8, 3, {24:1024, 1, 8, 9, 7, 10, 11, 12, 13, 18, 17, 21}), (9, 3, 7), (10, 3, {1, 8, 7}), (11, 3, {7, 21}), (12, 3, -), //~texture_16x16 //texture_8x8 (7, 4, 7), (8, 4, {24:1024, 1, 8, 9, 7, 10, 11, 12, 13, 18, 17, 21}), (9, 4, 7), (10, 4, {1, 8, 7}), (11, 4, {7, 21}), (12, 4, -)

In the example of realizing the FUIT, “(2, 1, {6, 7, 1, 8, 9, 10, 11, 12, 13, 14, 15, 20, 19, 17, 18, 5}),” refers to a network formed by using information of a VNT #2 index and a subnetwork of a network formed by using information of a VNT #1 index. The numbers of the brace { } are indexes of a PT. This network brings predetermined parameters (i.e. 16 described parameters) from the PT to use. In other words, the VNT index is an index for bringing information necessary for generating the current network, and the Parent VNT index is an index for reporting which network has a network to be generated. The parameter indexes are described by using an index of a variable of a parameter defined in the PT.

Moreover, like “(5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:1}),

(5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:0}), and

(5, 1, {22:3, 2, 1, 3, 5, 4, 8, 9, 10, 11, 12, 18, 14, 20, 23:01),” 3 networks can be formed by using one template information. 23:1 and 23:0 are initial values of parameter determined when a network is generated, and a second example and a third example show that the same information of the FUIT is completely identical. Even though one network (chroma) for computing a motion vector is formed according to the design method, the network can be divided into two networks to simultaneously process two block values.

Thereafter, a network connection table (NCT) will be described. The NCT has information related to a port capable of functioning as a path through which data can be transmitted between the networks. Inherent names can be allotted to an input port and an output port that perform the input and the output, respectively. When data is transmitted between the networks, data can be transmitted by placing a buffer in each port and duplicating contents of an input buffer in an output buffer.

The NCT can be described in the form of “(Src FUIT Index, Dst FUIT Index, Src Port, Dst Port)”. A network, which is a function unit set, has the connection structure in which a plurality of instances transmit and receive data to and from each other. Accordingly, information related to how a network (or a network instance) is connected to another network (or another network instance) is needed. Thus, the NCT can include fields of Src FUIT Index, indicating the number of an original instance in which data starts, Dst FUIT Index, indicating the number of a destination instance in which data arrives, Src Port, indicating an output of the original instance, and Dst Port, indicating an input of the destination instance. The connection of ports can be necessarily made between two instances.

Below is an example of realizing NCT.

{ //decoder.nl (-, 2, “BITS”, “BITS”), (2, 6, “MV_Y”, “MV”), (2, 6, “BTYPE_Y”, “BTYPE”), (2, 3, “BTYPE_Y”, “QFS”), (2, 3, “B_Y”, “TEX”), (3, 6, “f”, “TEX”), (2, 7, “MV_U”, “MV”) }

As shown above, in a decoder, (−, 2, “BITS”, “BITS”) shows that an input source (−) represented in BITS is received, the destination is an index 2 of FUIT, and an input port, Dst Port, of an instance corresponding to the index 2 of FUIT is BITS. Here, the BITS is merely an example showing that a name is allotted to a port and the port is referred to through the name.

(2, 6, “MV_Y”, “MV”) shows that the FUIT of the original instance has an index of 2, the FUIT of the destination has an index of 6, an output, Src Port, of the original instance is defined as MV_Y, and an input, Dst Port, of the destination instance is defined as MV.

Next, a parameter table (PT) will be described. The parameter is not syntax generated from a bitstream but is used to generate necessary data when an operation of a functional unit is performed. Since the parameter is not syntax, the parameter is unable to be transferred through the port transmitting data. The parameter can be transferred from a network, which is a function unit set, to a subnetwork included in the network. Information related to the transferred parameter is described in the FUIT. The PT has generation information of each parameter.

The operation of transferring a parameter to a subnetwork will be briefly described as follows. A FUIT describes a VNT index of an upper network and indexes of used parameters. A parameter table describes the VNT index related to which network the pertinent parameter must be defined in. For example, if (1, “MAXW_IN_MB”, 121) is described in the PT, it can be recognized that MAXW_IN_MB is a variable of a parameter defined in a network defined that is firstly defined in the VNT. The variable of the parameter can be used by the first network or its subnetwork. If an N^(th) lower subnetwork attempts to use the variable, continual successive inheritance should be performed. For example, if it is assumed that a second network is a lower network of a first network, a third network is a lower network of the second network, and the third network must use MAXW_IN_MB, both of the second and third networks must bring the parameter index of MAXW_IN_MB when it is described by the FUIT.

The PT can be described in the form of “(VNT Index, Parameter Name, Initial Value)”. Since a network instances derived from the basic template and having the same shapes use the same parameters, all of the parameters can be declared in the template. A name of parameter and an initial value are described as information of PT. However, since an initial value of parameter may be changed in each network instance, the FUIT describes information related to a parameter that is different from the initial value.

Below is an example of realizing the PT.

PT { //decoder (1, “MAXW_IN_MB”, 121), (1, “MAXH_IN_MB”, 69), (1, “ADDR_SZ”, 24), (1, “PIX_SZ”, 9) (1, “MV_SZ”, 9) (1, “SAMPLE_COUNT_SZ”, 8), (1, “SAMPLE_SZ”, 13), (1, “MB_COORD_SZ”, 8), (1, “BTYPE_SZ”, 12), (1, “NEWVOP”, 2048), (1, “INTRA”, 1024), (1, “INTER”, 512), (1, “QUANT_MASK”, 31), (1, “ROUND_TYPE”, 32), (1, “FCODE_MASK”, 448), (1, “FCODE_SHIFT”, 6) }

As described above, “(1, “MAXW_IN_MB”, 121)” shows that an index 1 of a VNT indicating basic template information is referred and MAXW_IN_MB used as a parameter has an initial value of 121.

Described below is yet another embodiment of a method of applying the method of describing an SET, an SRT, a DVT, and a CSCIT used to perform the syntax parsing of a bitstream by a decoder, unlike the above embodiments. In this case, it can be possible to use partial decoder descriptions of an FRT, an FU-CSCIT, and an FLT. Moreover, it can be possible to apply partial decoder descriptions of a VNT, an FUIT, an NCT, and a PT, which are described as yet another embodiment of the present invention. However, the case of applying the partial decoder descriptions of the VNT, the FUIT, the NCT and the PT will be described below for the convenience of understanding.

FIG. 58 is an example showing how syntax parsing is performed in accordance with yet another embodiment of the present invention.

Referring to FIG. 58, a decoder uses the SET, the SRT, the DVT, and the CSCIT in order to perform the syntax parsing as described above. However, it can be possible to use port information described in the VNT to allow each functional unit and/or each network to use information extracted from a bitstream through the syntax parsing, and it can be possible to use the PT when basic information necessary for the operation of a syntax parser is transferred.

However, the following change occurs in a decoder description being used for the syntax parsing in this embodiment. That is, the flow of parsing can be described in more various ways such as a linear method or a hierarchic method by changing formats of the SRT and the SET. It can be possible to be universally applied to other entropy encoding methods (e.g. a context-adaptive variable length decoder (CAVLD) and an exponential golomb encoding) by changing a format of the DVT. An interface for transferring data stored in a CSCI to individual functional units through a network is also described.

Hereinafter, changes of each partial decoder description will be briefly described by comparing with the embodiments (i.e. the aforementioned CDDL) described with reference to FIG. 1 through FIG. 57.

Firstly, a change of the SET will be described. In accordance with the above embodiments (i.e. the aforementioned CDDL) described with reference to FIG. 1 through FIG. 57, there is a case that a plurality of identical processing algorithms with little difference in detailed driving method are repeated. Accordingly, a parameter system is introduced to a format of the SET in accordance with this embodiment of the present invention. The parameter is provided as a factor value when a parsing process calls a parsing algorithm of the SET. This factor value can be an identifier of a buffer space (e.g. a CSCI memory) for storing a fixed constant, a value computed from a bitstream, or data deduced from the parsing process.

Moreover, it can be possible to further include new commands to change the SET, unlike the above embodiments of the present invention. For example, the new commands such as FOR and CONTINUE can be added to use a repeating statement more conveniently. A new command such as EX_Gol can be added for a more universally exponential golomb encoding. New commands such as VLD_A and VLD_B can be added for a more universal Huffman decoding VLD. If data is received from the PT, a new command such as GETP can be used. Finally, if data is transferred to the FU network through a port with reference to the VNT, a new command such as OUTPUT can be added.

For example, the SET can be represented by using such a command system as shown in the following table. Here, the field of “before” indicates the SET representing method according to the above embodiment of the present invention for comparison.

TABLE 16 Modified Before ... (“READ 32 B; (C0=(IBS==HEX:1B0));”), (“READ 8 > C2;”), ...   (“READ 16 > C4;”), (“READ 32 B > V10;   (“READ 32 > C32;”), (P1=(V10==P2));”),   (“VLD4 [0];”), (“READ P1 > P2;”), (“VLD4 [4] > V1; IF ((C55==3) || (C55==4)) { (“VLD_A(V10, 0);”),   RLD INTRA V1,V2,V3,V4,T4; (“VLD_B(4,7,V2,8,V3,9,V4);”), } ELSE { ...   RLD INTER V1,V2,V3,V4,T4;   }”), ...

Next, a change of the SRT will be described. In accordance with this embodiment of the present invention, the description structure of the SRT is changed such that the SRT can be represented in a hierarchic structure.

In other words, the existing CDDL uses the structure of an FSM to control a general parsing flow, based on a ‘GO’ command. According to the new method, however, the parsing structure can be more efficiently described by allowing the processing operations to be successively listed and the repeat and the branch to be processed by using a control statement, which is a more general method, such as IF and WHILE.

Moreover, when processing a parsing rule, the new SRT can use another parsing rule in a lower layer while a certain parsing rule is executed. Such a hierarchic call structure can be used to represent various hierarchic structures (e.g. a VO, a VOL, a GOP, a VOP, a Slice, an MB, and a Block) that can be applied in the statement parsing on a decoder description.

By these changes, the SRT can be represented as shown in the following table, for example. Here, the field of “before” indicates the SRT representing method according to the above embodiment of the present invention for comparison. As shown in the following table, while the SRT according to the aforementioned embodiment has the representing structure based on an FSM, the SRT according to this embodiment has a representing structure that is adequate for the hierarchic structure.

TABLE 17 Modified Before ... ( S3(C0, 432); ... IF(C0!=1) ERR; (0, “1: (C0==1) GO R1; 2: GO ERR;”) S0(8, C1); (1, “1: GO R2;”) S4(V1); (3, “1: 1: ([C2]==1) GO R3; 2: GO R5;;”) IF([C2]==1) { (4, “1: GO R4;”) S6(C0); (5, “1: GO R5;”) S7(C2); ... } ), ...

Next, a change of the CSCIT will be described. The CSCIT according to this embodiment allows some of a CSCI being stored in a multi-dimensional array to be more clearly represented such that it is possible to acquire a memory space more efficiently when a decoder sets a memory for the CSCI. The array dimension of the CSCI and a maximum array size per each dimension are described in the CSCIT in order to provide these functions.

By these changes, the CSCIT can be represented as shown in the following table, for example. Here, the field of “before” indicates the CSCIT representing method according to the above embodiment of the present invention for comparison.

TABLE 18 Modified Before ... ... (integer, C50), (array), (integer, 6), (array), (integer, 6, 64), (array), (integer), (integer), ... ...

Next, a change of the DVT will be described. The DVT according to this embodiment separates a partial decoder description describing a coded bit represented on a bitstream from a partial decoder description describing an actual value represented by each symbol before describing them in order to support variable length decoding of more various types. In other words, the DVT can use two types of partial decoder descriptions.

By these changes, the DVT can be represented as shown in the following table, for example. Here, the field of “before” indicates the DVT representing method according to the above embodiment of the present invention for comparison

TABLE 19 Modified Before ... DVT { ... MPEG4 { ( (1, {1, 001, 010, 011, 0001, (0,1), (1,001), (2,010), (3,011), (4,0001), 000001, 000010, 000011, (5,000001), (6,000010), (7,000011), 000000001}), (8,000000001), (9,NULL) (0, { . . . , . . . }, ), } ( . . . , . . . ) ... } ... ... ... DVT { { MPEG2 (0, {{9,10},{0,6},{7,2},...}), ( (9, 10), (0, 6), (7, 2), . . . ) (1, { . . . , . . . }), ( . . . , . . . ) } } ... ...

Described below is a method of forming a syntax parser according to a caltrop actor language (CAL) from the CDDL. The CAL refers to a process design language suggested by an EFPL.

It can be possible to make a syntax parser in a CAL programming language by using the CDDL. This making process can roughly use 6 partial decoder descriptions. A CAL parser is formed by using these partial decoder descriptions to form global variables, actions, and a finite state machine (FSM), which is an action control structure. The following table indicates functions corresponding to the partial decoder descriptions realized by the CDDL when the CAL parser is made.

TABLE 20 CDDL CAL Purpose SRT Global variables, Actions, syntax parsing FSM SET Global variables, Actions, syntax parsing and interface to FU FSM network CSCIT Global variables syntax parsing DVT Global variables syntax parsing VNT Actions Interface to FU network PT Actions syntax parsing and interface to FU network

FIG. 59 is an example showing how a READ command among SETs is converted to a CAL in accordance with yet anther embodiment of the present invention.

As shown in FIG. 59, in the case of an SET and an SRT among CDDL partial decoder descriptions, a parser is made by converting a particular command of the description or instruction to a CAL code corresponding to a CAL parser maker.

FIG. 60 is an example showing how a CSCIT is converted to a CAL in accordance with yet anther embodiment of the present invention.

As shown in FIG. 60, in the case of the CSCIT and the DVT, a parser can be made more simply. In other words, the making process can be completed only by changing the description method of the CSCI to be adequate for the CAL rule.

FIG. 61 is an example showing how a VNT is used in accordance with yet anther embodiment of the present invention.

When a parser transfers data to a port, the VNT can be used. The VNT describes a breakdown of a port through which a certain functional unit can output data. When a driving method of a parser is described by using an OUTPUT command, the CDDL helps particular data to be transmitted to a pertinent output port. At this time, VNT information is used to compare a name of output port and transmit an output to an adequate port.

FIG. 62 is an example showing how a PT is used in accordance with yet anther embodiment of the present invention.

Information described in the PT can be used when a value is transferred to a functional unit and while some of necessary information is received from an outside in the parsing process. In this case, a parameter value described in the PT can be extracted by using a command such as GETP.

FIG. 63 and FIG. 64 are examples showing the combination of an FSM section and the combination of a global variable section among a CAL source in accordance with yet anther embodiment of the present invention.

Each CDDL statement has code fragments in CAL. Combining the code fragments can make a completed statement information parser that is actually operated. Each code fragment is defined as shown in FIG. 63 and FIG. 64. The breakdowns corresponding to “global variables” and “actions” are combined by simply unifying all necessary global variables. However, the global variables and actions, which have been ever described as CAL sources by CDDL commands or statements, are not defined twice but reused. The breakdown corresponding to the “FSM” is used for the combining by providing information related to the method of combining each code fragment with the previous code fragments and the following code fragments to identifiers such as _state_prev_, _state_next_.

INDUSTRIAL APPLICABILITY

This present invention can be used for an encoding or decoding system of a video. 

1. A decoding apparatus, comprising: a decoder forming unit, configured to generate and output CSCI control information and connection control information by using partial decoder descriptions stored in a description storing unit; and a decoding solution, configured to selectively load a plurality of functional units included in a toolbox by using the CSCI control information and the connection control information to decode a bitstream to video data.
 2. The decoding apparatus of claim 1, wherein the toolbox comprises at least one parsing functional unit and a plurality of decoding functional units, the parsing functional unit configured to perform syntax parsing of the bitstream, the plurality of decoding functional units configured to decode the bitstream.
 3. The decoding apparatus of claim 1, wherein the partial decoder descriptions are described to be compatible with a network language.
 4. The decoding apparatus of claim 1, wherein the partial decoder descriptions are converted to a caltrop actor language (CAL) and stored in the description storing unit or converted to a caltrop actor language (CAL) and used by the decoder forming unit. 